Skip to content

Instantly share code, notes, and snippets.

@jide
Created April 1, 2022 20:26
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/53d6445ec33f6ab4ce87294bfcad90e1 to your computer and use it in GitHub Desktop.
Save jide/53d6445ec33f6ab4ce87294bfcad90e1 to your computer and use it in GitHub Desktop.
import { derived } from 'overmind';
export const state = {
loading: false,
auth: {},
router: {},
post: null,
isAuthenticated: derived(state => state.auth.token !== undefined)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment