You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

proxy-state-tree

Package Overview
Dependencies
Maintainers
1
Versions
896
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxy-state-tree - npm Package Compare versions

Comparing version

to
1.0.0-beta3

2

dist/proxy-state-tree.cjs.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.