Describe the bug
resource.data() is returning data from another resource, in another component
Your Example Website or App
https://stackblitz.com/edit/github-pqy8j7-y8z78u?file=src%2Fcomponents%2FPage.tsx
Steps to Reproduce the Bug or Issue
- Open Page.tsx
- See that
pageQuery resolves to 'pageQuery API response' in it's fetcher function, but when you check pageQuery.data(), it contains "Component A API response"
Expected behavior
This text is displayed
pageQuery.data: "pageQuery API response"
Screenshots or Videos
No response
Platform
Windows, Chrome 123
Additional context
@birkskyum:
It appear to happen because the data from the CompA resource isn't used anywhere, and then it ends up being picked up inside Page instead of the resource defined later there...
Describe the bug
resource.data()is returning data from another resource, in another componentYour Example Website or App
https://stackblitz.com/edit/github-pqy8j7-y8z78u?file=src%2Fcomponents%2FPage.tsx
Steps to Reproduce the Bug or Issue
pageQueryresolves to'pageQuery API response'in it's fetcher function, but when you checkpageQuery.data(), it contains"Component A API response"Expected behavior
This text is displayed
Screenshots or Videos
No response
Platform
Windows, Chrome 123
Additional context
@birkskyum: