proxy-state-tree
Advanced tools
Comparing version
@@ -191,3 +191,3 @@ 'use strict'; | ||
return this.mutations; | ||
return this.mutations.slice(); | ||
} | ||
@@ -194,0 +194,0 @@ startPathsTracking() { |
@@ -185,3 +185,3 @@ import isPlainObject from 'is-plain-object'; | ||
return this.mutations; | ||
return this.mutations.slice(); | ||
} | ||
@@ -188,0 +188,0 @@ startPathsTracking() { |
{ | ||
"name": "proxy-state-tree", | ||
"version": "1.0.0-beta2", | ||
"version": "1.0.0-beta3", | ||
"description": "An implementation of the Mobx/Vue state tracking approach, for library authors", | ||
@@ -5,0 +5,0 @@ "main": "dist/proxy-state-tree.cjs.js", |
@@ -13,6 +13,8 @@ # proxy-state-tree | ||
## Example | ||
## Examples | ||
You can look at an example of how you could build a state-tree implementation for [vuejs](https://vuejs.org/) on this [codesandbox](https://codesandbox.io/s/5vy5jxrpop). It is a simple implementation that allows you to define a state tree and expose actions to the components. There are many ways to do this, so this is just one example of how proxy-state-tree integrates with existing solutions. You might also imagine additional features here for computing state in the tree, creating reactions in the components etc. | ||
- [Vue](https://codesandbox.io/s/5vy5jxrpop) example with a simple implementation that allows you to define a state tree and expose a store to the components which can be mutated in the methods | ||
- [Preact](https://codesandbox.io/s/lpmv68r8y9) example with a simple implementation of a external state and actions passed on a Provider. Also includes a simple, but inspiring debugger | ||
## Create a tree | ||
@@ -19,0 +21,0 @@ |
141
1.44%27496
-0.44%