mandev7724
Context Provider in Layout Component for nested routes in a solid start App is undefined
I have a nested route routes/user/[id]
under routes/ folder, I have created a user.tsx file with following code.
As per expectation the component is acting as a layout for routes/user/[id], but when I try to access the
context using useContext(AppContext), the context is undefined.
8 replies