Skip to content

Commit 7c50d20

Browse files
author
Hamed Taheri
committed
update
1 parent 5e2c9a9 commit 7c50d20

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@ export { storeNames, storeActions, useStore, readOnlyStore, dispatchDirectly };
157157

158158
```
159159

160+
## Final Step:
161+
Call `store/index.js` in your main index.js file once time. (the first begin of your app)
162+
163+
e.g: Main index.js of your app
164+
165+
```js
166+
import "./store/index.js"; // load stores once time in begin of your app
167+
```
168+
160169
# Using store in our components
161170

162171
## Import required functions from entry point at `/store/index.js`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-redux-global-state-manager",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Fully native global state manager using react Hooks. You can use this library instead of Redux or Mobx. also you can access state from all of your components and behavior with them using hooks.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)