Replies: 3 comments 1 reply
-
Just checked, this will be run on the client only on navigation (so won't make an additional request):
|
Beta Was this translation helpful? Give feedback.
-
Yeah the previous router version was the same behaviour as Luckly, there are a couple more things you can do to get the router to ignore a link click...
This should probably get added to the README. |
Beta Was this translation helpful? Give feedback.
-
Had the same issue when I needed to redirect the user to an API route. The |
Beta Was this translation helpful? Give feedback.
-
I need one specific link to make a full page reload (from landing page to app page – for the request to go through middleware).
When using
explicitLinks={false}
(default<Router>
behaviour):<a>
client routing is used and addinglink={false}
doesn't go through SSR due to this;<A>
, I can't specify<A link={false}>
to prevent client routing, as it's hardcoded;When using
explicitLinks={true}
:<A>
component. Use<a>
for my use case. This means I need my stylised link component to check which anchor it needs to render.This could be simplified if
link={false}
could be provided to the<A>
component directly instead.Maybe I could use route actions for what I try to achieve? (Edit: see first message, no)
But this means I need to setup the route loaders for every route I want to protect (here I'm using layout, but can I use a different layout?)
I didn't manage Stackblitz to work with current
solid-start
, but in case one wants to run locally.Beta Was this translation helpful? Give feedback.
All reactions