#Event Handlers don't work when used on elements that were made from fetched data
5 messages · Page 1 of 1 (latest)
- Don’t use
use()for data fetching (yet). Use react-query/swr - You don’t need to add the parentheses to (components), but it’s unrelated to the issue
- Thank you, it fixed it.
- I use it as a way to store my component inside the app dir, and not treat it as a route
a route is only created if you use page.tsx/route.ts. Any other name and the route won't be created (just try it). Regardless of whether you add the parentheses or not