Hey folks! Wanted to know if I should use a Data-F...
# off-topic
s
Hey folks! Wanted to know if I should use a Data-Fetching library like SWR with supabaseClient on a Next.js Project? Appreciate your help 🙂
s
You can use it or you can build an app without it since the supabase-js client library works well on its own too.
s
Ohh! Thanks. Actually was confused to have a global state management or not. I didn't find much examples that use Supabase with Redux or similar. Any suggestions over that?
s
I don't do React stuff personally, so not sure but it would work as how you would do any data fetching with redux.
s
Got it, thank you so much!
Appreciate the help
j
that's a good idea, we should maybe get an example together of this
something we thought about internally for our own dashboard was to use realtime to have a consistent up to date state locally (although we were using mobx, not redux, but I think the concept is the same), and then use supabase-js
update()
to make changes from the client. but we could benefit from having a full example showing this 🤔 as it seems super powerful
s
That would indeed be a valuable addition!