File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ The workflow is as follows:
21
21
- Set up ` next-redux-wrapper `
22
22
- In ` getStaticProps ` or ` getServerSideProps ` :
23
23
- Pre-fetch all queries via the ` initiate ` actions, e.g. ` store.dispatch(api.endpoints.getPokemonByName.initiate(name)) `
24
- - Wait for each query to finish using ` await Promise.all(api.getRunningOperationPromises()) `
24
+ - Wait for each query to finish using ` await Promise.all(api.util. getRunningOperationPromises()) `
25
25
- In your ` createApi ` call, configure rehydration using the ` extractRehydrationInfo ` option:
26
26
27
27
[ examples] ( docblock://query/createApi.ts?token=CreateApiOptions.extractRehydrationInfo )
@@ -56,4 +56,4 @@ The workflow is as follows:
56
56
[ examples] ( docblock://query/react/module.ts?token=ReactHooksModuleOptions.unstable__sideEffectsInRender )
57
57
58
58
- Use your custom ` createApi ` when calling ` const api = createApi({...}) `
59
- - Wait for all queries to finish using ` await Promise.all(api.getRunningOperationPromises()) ` before performing the next render cycle
59
+ - Wait for all queries to finish using ` await Promise.all(api.util. getRunningOperationPromises()) ` before performing the next render cycle
You can’t perform that action at this time.
0 commit comments