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
Copy file name to clipboardExpand all lines: website/docs/gettingStarted.mdx
+9-2
Original file line number
Diff line number
Diff line change
@@ -64,9 +64,13 @@ function MyComponent(){
64
64
To be sure that your component will render when value changed you have to do 2 things:
65
65
66
66
- call the function `updateStore` after changing the store.
67
-
- Call the function `useRenderIfIChange` and give it an array of values that should be inseted. One of the those values changed, the component will rerender.
67
+
- Call the function `useRenderIfIChange` and give it an array of values that should be inseted. When of the those values changed, the component will rerender.
68
68
69
+
<<<<<<<HEAD
69
70
```js{3,8}
71
+
=======
72
+
```js{3,9}
73
+
>>>>>>> 22489d5bdfbe69cb2722885e9c2aa7e7eb735913
70
74
importstorefrom'./mystore'
71
75
function MyComponent(){
72
76
store.useRerenderIfChange(()=>[store.value])
@@ -146,7 +150,10 @@ You can also create async functions.
146
150
## Multi stores
147
151
148
152
Although probably most of the projects will use one global store. You are free to create multi stores, and use each or both of them in any component.
153
+
<<<<<<<HEAD
149
154
150
155
:::tip
151
156
152
-
You can call updateStore as many time you wish. GlobX smart enough to executing it only once per rendering cycle.
0 commit comments