You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Breaking change in [v5](https://github.com/solkimicreb/react-easy-state/releases/tag/v5.0.0)**: the auto bind feature got removed. See the alternatives for your components at the [official React docs](https://reactjs.org/docs/handling-events.html) and for you stores at [the FAQ docs section](#my-stores-are-broken).
9
+
**Breaking change in [v5](https://github.com/solkimicreb/react-easy-state/releases/tag/v5.0.0)**: the auto bind feature got removed. See the alternatives for your components at the [official React docs](https://reactjs.org/docs/handling-events.html) and for you stores at [the FAQ docs section](#my-store-methods-are-broken).
10
10
11
11
<details>
12
12
<summary><strong>Table of Contents</strong></summary>
@@ -39,13 +39,11 @@ Simple React state management. Made with :heart: and ES6 Proxies.
39
39
40
40
## Introduction
41
41
42
-
Easy State has two rules:
42
+
Easy State has two rules.
43
43
44
44
1. Always wrap you components with `view`.
45
45
2. Always wrap you state store objects with `store`.
46
46
47
-
This is enough for it to automatically update your views when needed - no matter how exotically you mutate your state stores. With this freedom you can invent and use your personal favorite state management patterns.
This is enough for it to automatically update your views when needed - no matter how exotically you mutate your state stores. With this freedom you can invent and use your personal favorite state management patterns.
58
+
59
59
## Installation
60
60
61
61
`npm install react-easy-state`
@@ -240,7 +240,7 @@ This works as expected, even when you pass store methods as callbacks.
240
240
241
241
### My views are not rendering
242
242
243
-
You should wrap your state stores in`store` as early as possible to make them reactive.
243
+
You should wrap your state stores with`store` as early as possible to make them reactive.
244
244
245
245
```js
246
246
constperson= { name:'Bob' }
@@ -249,7 +249,9 @@ person.name = 'Ann'
249
249
exportdefaultstore(person)
250
250
```
251
251
252
-
The above example wouldn't cause any re-renders on the `person.name = 'Ann'` mutation, because it is targeted at the raw object. Mutating the raw - none `store` wrapped object - won't schedule renders. Do this instead of the above code.
252
+
The above example wouldn't trigger re-renders on the `person.name = 'Ann'` mutation, because it is targeted at the raw object. Mutating the raw - none `store` wrapped object - won't schedule renders.
0 commit comments