Anyone have any experience with Flutter streams? W...
# help
k
Anyone have any experience with Flutter streams? When I update an entry in the database, the stream isn't updated
n
Hello @kevindmoore! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
Not directly related to Flutter streams, but some common errors with realtime are not turning on replication for that table, having RLS on and user not meeting select policy, bad filter.
n
kevindmoore (2022-05-22)
k
So, what should the settings be? Should I have RLS on? I don't now
g
RLS off is fine, just if on you have to meet it for select.
k
I have a very simple list of tasks. When I change a boolean flag, the stream should update but it isn't
g
Under database/replication you have "update" toggled on, and then over to far right clicked on "x tables" and selected your table?
k
Hmm. Nothing selected there
Isn't that more for backup?
g
realtime uses replication
k
Turned it on for those tables. Still doesn't help with streams
g
And you toggeled update/insert/delete buttons as appropriate?
k
They are all on. I didn't try and turn them off/on
g
should be fine
k
Wait...I think that may have worked...
g
At this point without seeing the actual code (probably more helpful for someone using flutter to see it) it is hard to say. I do know there are two different dart/flutter libs and I assume you are using this one: https://github.com/supabase-community/supabase-dart
k
I mean I think your solution fixed my problem! I did a restart and now things are updating! Thanks
g
👍
k
I never would have figured that out. I owe you
So, I started adding deletion and that doesn't seem to notify the stream (the stream still thinks it has them)