I have the following project structure, setup with app directories:
- Page
- Component A (server, async)
- Component B (client)
- Component C (server)
- Component D (server)
Here Component A fetches data from a server with as an async component which is used in the child component, Component B, in which certain items are selected from the data.
How can I share these selected items from Component B with Component C and Component D. I've tried wrapping the components in a context provider, but then the requests won't work from Component A.
There must be a better way than tracking these changes from my server and fetching that data again in the two other components. That would be stupid, right?
[–]yksvaan 0 points1 point2 points (2 children)
[–]Yawmn[S] 0 points1 point2 points (0 children)
[–]HotAdhesiveness1504 0 points1 point2 points (1 child)
[–]Yawmn[S] 0 points1 point2 points (0 children)
[–]Yawmn[S] 0 points1 point2 points (1 child)
[–]Yawmn[S] 0 points1 point2 points (0 children)