Header Element - Page change/State #546
Unanswered
livevsonline
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Basically i'm in an enviroment where the header data (JSON) is parsed on each page request and with that data the header (Element) is build, however the people in charge of the project want logic like this:
#1 First page load pass page data + header data (JSON/1 request) and build the elements
#2 On page change check if the header requires an update (there are several different headers depending on which page you are on), if it does require a new header i have to request an endpoint to get the header and build the header.
That seems pretty straight forward, however im unsure on how to keep the state of the header from on page to another and basically how to go about this, so any ideas on how i could go with this in tanstack router? :)
Any help/input is much appreciated :)
Beta Was this translation helpful? Give feedback.
All reactions