#Global search param

5 messages · Page 1 of 1 (latest)

wraith lake
#

Starting from the auth layout there is a search param (gameServerId) that needs to be set for every route within that layout . However when navigating I currently need to set that search param again for every navigation... Is there a way to maintain that global search param? I thought I could achieve this through the validateSearch from the _auth, but that does not allow me to set custom search

nova blaze
#

Whenever you navigate you would have to use a callback -> navigate({ search: prev => ({ ...prev }); to retain the current search params

wraith lake
#

thx

flat comet
wraith lake
#

that's not too bad, is there something similar for Link as well?