colinshen
Explore posts from serversRender a new router and redirect in action of opened component doesn't redirect in the opened window
I made a mistake in the above example. SomeComponent calls
createAsync
instead of createAction
(its not a post action).
I found the solution, I should not use the redirect in the server function ,just return the url and use location.replace with the new url.
Thanks!!6 replies
Authentication in both component and middleware
middleware
protected component
Problems:
1. If session or user is null, middleware should return a redirect to login page, but redirect function or sendRedirect(from vinxi) cause too many redirect error. If the middleware logic is correct, how to redirect in middleware?
6 replies
How to set a cookie when using `createRouteData` or `createServerData$`?
related with https://github.com/solidjs/solid-start/pull/485?
14 replies