lepikhinb/momentum-trail

defineRoutes export is missing

Closed this issue · 1 comments

The usage section mentions using defineRoutes. However, when I try the following, I get an error: Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/momentum-trail.js?v=a54a38ca' does not provide an export named 'defineRoutes'

import { defineRoutes } from "momentum-trail"

Related to this, would it be possible to expose the store, altogether, so it's possible to get the current list of routes, defaults, etc and update them? My use-case is that I want to update the URL defaults in a multi-tenant app when the user switches the current tenant.

Just fixed that. Make sure to update the dependency.

Thanks!