Fetching data in server component and file structure
Unanswered
Swallow-tailed Kite posted this in #help-forum
Swallow-tailed KiteOP
If I have more than one fetch call in a server component and I want to move the fetching functions from a server component to another file. How could a file structure look like, should I keep the request functions moved from the server file to an own .ts file attached to the component, inside its folder and what could it be called? Or should I collect all to one file and share it between components? Any best practices ?