The method initializeStore is only being used locally by useStore.
By having this exported I initially thought the consumer would have to call this as setup globally and then call useStore as well for each consuming component.
Downloading the sample I saw it's only useStore that is being used by the consuming app and this could be made clear by not exporting initializeStore.
* Add example with Magic and Passport.js
* Tweaked wording on README
* Fixed lint error
* Fixed prettier error
* Update examples/magic/README.md
Removed Download manually section from README
Co-Authored-By: Joe Haddad <timer150@gmail.com>
* Removed dependency on passport and express + cleanup
* Changed ZEIT brand to Vercel
* Updated readme instructions and secrets
* Renamed example
* Changed db comment
Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
* Failing test to demonstrate issue #12004
* Separate position for global vs client scripts. Fixes#12004
* Revert client.ts
* Revert global.ts
Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
* Fix type on NextApiHandler
The example [here](https://nextjs.org/docs/api-routes/api-middlewares) shows that `NextApiHandler` can be async, so the return type should be `void | Promise<void>`.
* Add TS integration tests for API
* [Fast Refresh] propagates a module that stops accepting in next version
* Verify self accept first
* Update test for webpack behavior
* Fix test on Node 10
* add rosetta example
* add comment
* add example for ssr
* add debug example, rerender when i18n keys are added
* output active locale, fix interpolation, fix cases for SSR and CSR
* add useful comments
* address pr issues
* update name in readme
* improve wording
* rename folder
* fix prop typo, add redirects
* load specific i18n json file in getStatisProps
Dashboard dont use any ssr technique
* use ext
* improve example
* Updated example
Co-authored-by: Luis Alvarez <luis@zeit.co>
* update postcss.config.js to fix warnings
Return empty array if the condition is not met to avoid a null/undefined PostCSS plugin.
Related PR: https://github.com/zeit/next.js/pull/11366
* style: correct linting error