Is there already a package that allows me to save all the elements I want in the URL and repopulate them when I go back and forth? #12392
Unanswered
frederikhors
asked this question in
Q&A
Replies: 1 comment
-
Nobody? Really? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need an easy way to put plain JS objects
JSON.stringified()
in the URL to be able to bookmark or share it.The below code is working good in my small Svelte Kit app: here the reproduction.
What I need now is to remove
$effect
andafterNavigate
code from this single file and create an helper to be used in the others app's pages.And I need to handle more than one param, not only
condition
like here, but for examplesearchText
andpagination
.I was thinking about something like:
but since I'm not good at programming and I don't want to reinvent a (punctured) wheel, can you tell me if there is already some package that does similar things?
Is there a SIMPLE way in Svelte Kit to persist in the URL the filter conditions of a dashboard or a list so that I can:
return to previous filter settings when I go back and to subsequent ones when I go forward with the browser keys or
save those filters (javascript simple objects with
JSON.stringify()
) in the browser bookmarks or as a link to share with some people?Beta Was this translation helpful? Give feedback.
All reactions