Data fetching in NextJs 13.4+
I have a question about this statement
Are fetch requests only cached if implemented inside of a server component? I've read the nextjs docs and I feel they make assumptions about some of the underlying concepts.
Small thing, are components outside of the app folder default server components as well or do they have to be within the app directory?
- In this new model, we recommend fetching data directly in the component that needs it, even if you're requesting the same data in multiple components, rather than passing the data between components as props.
Are fetch requests only cached if implemented inside of a server component? I've read the nextjs docs and I feel they make assumptions about some of the underlying concepts.
Small thing, are components outside of the app folder default server components as well or do they have to be within the app directory?