Skip to content

Instantly share code, notes, and snippets.

@jide
Last active April 1, 2022 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jide/9755d4e3704588a1e3defbc5fafba0d1 to your computer and use it in GitHub Desktop.
Save jide/9755d4e3704588a1e3defbc5fafba0d1 to your computer and use it in GitHub Desktop.
export const onInitializeOvermind = ({ state, actions, effects }, instance) => {
state.auth.token = effects.auth.getLocalStorageToken();
effects.router.initialize({
'/': actions.showLoginPage,
'/:postId': actions.showPostPage
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment