Route your web application with effector.
Installation
npm install effector history @miizzo/effector-router
Usage example
import { guard } from 'effector';
import { pushed, $pathname } from '@miizzo/effector-router';
guard({
clock: $pathname,
filter: (pathname) => pathname === '/',
target: pushed.prepend(() => '/home'),
});