Skip to content

Instantly share code, notes, and snippets.

@pigoz
Last active January 10, 2023 10:12
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 pigoz/b69e762d7d0c9b92c7752c6df4288700 to your computer and use it in GitHub Desktop.
Save pigoz/b69e762d7d0c9b92c7752c6df4288700 to your computer and use it in GitHub Desktop.
impport * as Z from '@effect/io/Effect';
export { loader } from '~/runtime';
export const zloader: Z.Effect<..., ..., ...> = currentUserOrRedirect($path('/login'));
import { LoaderArgs } from '@remix-run/node';
const eval2 = eval;
export const loader = (args: LoaderArgs) =>
dataFunction(args, eval2('zloader'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment