add provider config to baseWrapContext

This commit is contained in:
2020-07-15 12:11:11 +07:00
parent a3db95395e
commit b35ca2e9a3
4 changed files with 13 additions and 5 deletions

View File

@@ -8,4 +8,6 @@ const App = () => {
</div>
}
export default wrapTestProvider(App)
export default wrapTestProvider(App, {props: {
chambers: 70
}})

View File

@@ -28,6 +28,7 @@ export const useTestContext = baseUseContext(Context)
export const withTestContext = baseWithContext(Context, 'testContextProps')
// @ts-ignore
export const wrapTestProvider = baseContextWrap(TestContextProvider)
export default TestContextProvider