how to make route's resources rerun on changing the page
I have this route: https://github.com/learn-anything/learn-anything/blob/main/src/routes/%5Buser%5D/%5Btopic%5D.tsx
GitHub
learn-anything/src/routes/[user]/[topic].tsx at main · learn-anythi...
Organize world's knowledge, explore connections and curate learning paths - learn-anything/src/routes/[user]/[topic].tsx at main · learn-anything/learn-anything
7 Replies
in the image above when i click on the sidebar items
it changes the url
but these resources don't rerun
is it possible to rerun them?
i thought if i change the page it would rerun the route
but apparently it doesnt do it, i tested it with onMount
http://localhost:3000/@nikita/zsh
to http://localhost:3000/@nikita/physics
for example
it should run this again with new params values
if i do this it works
but i want A
for client side transitions, i just need to trigger resource to rerun somehowI think you can pass something to it to use it as a flat to make it rerun.
If id changes it reruns.
i have this now
does that not mean that if topic changes
it should rerun?
where params is
It should rerun I think...
I don't know what could be wrong.