Replies: 2 comments 3 replies
-
In my opnion,On this how would refreshing page work based on that you can use loaderDeps lifecycle method to return any required data while removing sensitive data form URL and dual loading form local storage, session storage, cookies or index db. |
Beta Was this translation helpful? Give feedback.
0 replies
-
have a look at https://tanstack.com/router/latest/docs/framework/react/api/router/stripSearchParamsFunction |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I have a route
/foo
, which needs to take acustomer-key
from the search parameters.It will look like this
https://example.com/foo?customer-key=xxxxx
However, since that's sensitive info, at least I don't want it to show up in the URL just like that. So I want to remove it after reading the data and save it somewhere (e.g. session storage).
Is there any suggested way to do this? Once I remove it using
navigate()
, the value fromuseSearch()
also becomesnull
.Beta Was this translation helpful? Give feedback.
All reactions