Comment by overbytecode

2 years ago

I’m curious how you’re integrating it with Sveltekit? Are you using Sveltekit just as a static generator?

Depends upon the project.

For CRUD apps, sveltekits progressive enhancement and form actions make it quick to to add simple function to the page. You can store the pocketbase instance, pb, in locals and reference it all over the application.

For more multiplayer things, sticking a client-side subscription to a collection allows updates of elements that can be worked with/added/moved around etc.