StellateHQ / fuse

Fuse: The fastest way to build and query great APIs with TypeScript
https://fusedata.dev
MIT License
544 stars 13 forks source link

docs: accessing data from the client #50

Closed JoviDeCroock closed 9 months ago

JoviDeCroock commented 9 months ago

We might need to add a section on server-actions but haven't looked to deep into them yet, it looks like we would need to advise folks to create a new file in a separate folder with "use server"; at the top which does the getClient dance and exports a method that alters data.

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fusejs-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 8:31pm
spacex-fuse ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 8:31pm
mxstbr commented 9 months ago

We might need to add a section on server-actions but haven't looked to deep into them yet, it looks like we would need to advise folks to create a new file in a separate folder with "use server"; at the top which does the getClient dance and exports a method that alters data.

Would love this. Will add a TODO for it.