How Smelly Is It To Add Components to Router Context?
I'm using nested layouts, but sometimes I need to break out of them. For example, I have a fixed top nav that's is always there. But, on some pages I want to add a save button up there.
Then, in my components I can do something like this:
Is this a huge antipattern? Better ways to do it? Based on my naive testing it works pretty well.
0 Replies