You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With 7.5 lazyMiddleware is removed but returning middleware from a lazy fn also isn't supported.
This makes the syntax extremely verbose when you want to start using middleware in a lazy route. It also means you would have to keep your routes file in sync for each property defined in each route which imo kills the purpose of route file modules.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With 7.5
lazyMiddleware
is removed but returningmiddleware
from a lazy fn also isn't supported.This makes the syntax extremely verbose when you want to start using middleware in a lazy route. It also means you would have to keep your routes file in sync for each property defined in each route which imo kills the purpose of route file modules.
Before using middleware:
If you want to use middleware:
It would be really helpful if you can return
middleware
from alazy fn
or be able to returnlazy fn
from inside alazy object
.Am i missing something?
Beta Was this translation helpful? Give feedback.
All reactions