Skip to content

Commit d7be171

Browse files
committed
better docs
2 parents e9eb2ad + 22489d5 commit d7be171

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://www.buymeacoffee.com/aminadav

website/docs/gettingStarted.mdx

+9-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,13 @@ function MyComponent(){
6464
To be sure that your component will render when value changed you have to do 2 things:
6565

6666
- 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.
6868

69+
<<<<<<< HEAD
6970
```js {3,8}
71+
=======
72+
```js {3,9}
73+
>>>>>>> 22489d5bdfbe69cb2722885e9c2aa7e7eb735913
7074
import store from './mystore'
7175
function MyComponent(){
7276
store.useRerenderIfChange(()=>[store.value])
@@ -146,7 +150,10 @@ You can also create async functions.
146150
## Multi stores
147151

148152
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
149154

150155
:::tip
151156

152-
You can call updateStore as many time you wish. GlobX smart enough to executing it only once per rendering cycle.
157+
You can call updateStore as many time you wish. GlobX smart enough to executing it only once per rendering cycle.
158+
=======
159+
>>>>>>> 22489d5bdfbe69cb2722885e9c2aa7e7eb735913

0 commit comments

Comments
 (0)