Typing params for top level routes that might have them?
Is it possible to type params that might exist at a higher level? Aim here is to swap cookie values if a specific param value changes
4 Replies
stormy-gold•13mo ago
The route itself will only ever receive params if the route its on has params.
ie.
fair-roseOP•13mo ago
Hmm, this app layout route I have is receiving children params
Yup just logged params in this layout route and its receiving all params
stormy-gold•13mo ago
Either ways, it's not supported behaviors.
You should only be working with route content upto that point, not beyond it
fair-roseOP•13mo ago
Sounds good, will move this down to the parent of this param