3.9.2 • Published 9 months ago

@joist/observable v3.9.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Observable

Adds the ability to monitor class properties (static and instance) for changes

Installation:

npm i @joist/observable
import { observe, effect } from '@joist/observable';

class AppState {
  @observe accessor todos: string[] = [];
  @observe accessor userName?: string;

  @effect onChange(changes: Set<string | symbol>) {
    console.log(changes);
  }
}

const state = new AppState();

state.todos = [...state.todos, 'Build Shit'];
state.userName = 'Danny Blue'
4.0.0-next.13

9 months ago

4.0.0-next.11

9 months ago

4.0.0-next.12

9 months ago

3.9.2

9 months ago

4.0.0-next.10

10 months ago

4.0.0-next.9

10 months ago

3.9.1

12 months ago

3.9.0

12 months ago

4.0.0-next.8

11 months ago

4.0.0-next.7

11 months ago

4.0.0-next.6

11 months ago

3.8.0

12 months ago

4.0.0-next.1

12 months ago

4.0.0-next.5

11 months ago

4.0.0-next.4

11 months ago

4.0.0-next.3

11 months ago

4.0.0-next.2

12 months ago

3.7.0

12 months ago

3.6.0

12 months ago

3.5.0

12 months ago

3.4.0

12 months ago

4.0.1-next.0

12 months ago

3.2.1

1 year ago

3.2.0

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.8-next.0

1 year ago

3.0.8-next.1

1 year ago

3.0.0-next.19

2 years ago

3.0.0-next.18

2 years ago

3.0.4

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.0

2 years ago

3.0.0-rc.2

2 years ago

3.0.0-rc.1

2 years ago

3.0.0-next.20

2 years ago

3.0.0-next.11

2 years ago

3.0.0-next.10

2 years ago

3.0.0-next.13

2 years ago

3.0.0-next.12

2 years ago

3.0.0-next.2

2 years ago

3.0.0-next.1

2 years ago

3.0.0-next.4

2 years ago

3.0.0-next.3

2 years ago

3.0.0-next.15

2 years ago

3.0.0-next.14

2 years ago

3.0.0-next.16

2 years ago

3.0.0-next.9

2 years ago

3.0.0-next.6

2 years ago

3.0.0-next.5

2 years ago

3.0.0-next.8

2 years ago

3.0.0-next.7

2 years ago

3.0.0-2

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

2.0.0-beta.11

3 years ago

2.0.0-beta.13

3 years ago

2.0.0-beta.12

3 years ago

2.0.0-alpha.20

3 years ago

2.0.0-alpha.11

3 years ago

2.0.0-alpha.19

3 years ago

2.0.0-alpha.18

3 years ago

2.0.0-alpha.17

3 years ago

2.0.0-alpha.16

3 years ago

2.0.0-alpha.15

3 years ago

2.0.0-alpha.14

3 years ago

2.0.0-alpha.13

3 years ago

2.0.0-alpha.12

3 years ago

2.0.0-y.0

3 years ago

2.0.0-beta.4

3 years ago

2.0.0-beta.2

3 years ago

2.0.0-beta.1

4 years ago

2.0.0-beta.3

3 years ago

2.0.0-beta.0

4 years ago

2.0.0-alpha.5

4 years ago

2.0.0-alpha.4

4 years ago

2.0.0-alpha.3

4 years ago

2.0.0-alpha.2

4 years ago

2.0.0-alpha.1

4 years ago

2.0.0-alpha.0

4 years ago

2.0.0-next.10

4 years ago

2.0.0-canary.0

4 years ago

2.0.0-next.9

4 years ago

2.0.0-next.8

4 years ago

2.0.0-next.7

4 years ago

2.0.0-next.6

4 years ago

2.0.0-next.5

4 years ago

2.0.0-next.4

4 years ago

2.0.0-next.3

4 years ago

2.0.0-next.2

4 years ago