You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm studying the different routes used, and I see different methods, maybe I'm wrong, AFAIU:
hello/pages.ts directly fetch the go API. Could also have been the pb API too, right?
posts/page.svelte uses generated-types to watch<PostsResponse>
[slug]/ and edit/ page.ts imports client from "$lib/pocketbase" to GET and POST items
I'd like to have a single page doing GET (list records, select one to read this record), POST (new record, edit in place) and DELETE.
What would be the best way to get this, while keeping auth and live (watch<PostsResponse> I guess) to edit records?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm studying the different routes used, and I see different methods, maybe I'm wrong, AFAIU:
watch<PostsResponse>
I'd like to have a single page doing GET (list records, select one to read this record), POST (new record, edit in place) and DELETE.
What would be the best way to get this, while keeping auth and live (
watch<PostsResponse>
I guess) to edit records?Thanks
Beta Was this translation helpful? Give feedback.
All reactions