Saving Results of routeData() into a Context
What is the proper way to save the results of routeData() into a context? So, here's my setup.
Here's my root.
And, in my route component, I have it like this:
According to my logs, data is present in both the routeData() and when the component initially renders. However, it doesn't seem like it is ever put into the context (as in, it's saying it is undefined on my UI). How would I go about this?
1 Reply
Looks like it’s a problem with how I’m using Context.