locusdagraca
locusdagraca
TTCTheo's Typesafe Cult
Created by locusdagraca on 7/25/2023 in #questions
fetching dynamic data in layout, not page
its actually what i did, but it does not work. I have a sub component in my navbar component, that i made for test purpose and it shows true or false. I show it in my navbar (which is in my layout) and in my page too. When i change the boolean state with a switch for example, i see the data updated in real time in my page (its normal) but not in the layout. Its the same component, called without props. The fix i found fro now is to use context.
5 replies