clean-state
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "clean-state", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -9,3 +9,3 @@ # Clean-State | ||
<a href="https://www.npmjs.com/clean-state" target="_blank"><img src="https://img.shields.io/npm/v/clean-state" alt="Npm Version" /></a> | ||
<a href="https://www.npmjs.com/clean-state" target="_blank"><img src="https://img.shields.io/npm/l/clean-state" alt="Package License" /></a> | ||
<a href="https://www.npmjs.com/clean-state" target="_blank"><img src="https://img.shields.io/npm/l/clean-state?style=flat-square" alt="Package License" /></a> | ||
<a href="https://www.npmjs.com/clean-state" target="_blank"><img src="https://img.shields.io/npm/dm/clean-state" alt="Downloads" /></a> | ||
@@ -72,8 +72,8 @@ </div> | ||
// app.ts | ||
import Container, { initialState } from 'index.ts'; | ||
import { Provider, initialState } from 'index.ts'; | ||
function MyApp({ Component, pageProps }: AppProps): React.ReactElement { | ||
// todo: here can modify initialState | ||
return <Container.Provider initialState={initialState}> | ||
return <Provider initialState={initialState}> | ||
<Component {...pageProps} /> | ||
</Container.Provider>; | ||
</Provider>; | ||
} | ||
@@ -116,2 +116,3 @@ ``` | ||
import { mixin } from 'src/store'; | ||
// user 模块混入了common的setValue方法 | ||
@@ -118,0 +119,0 @@ const modules = mixin(common, { user }) |
126
16927