Realtime Update not working all times on React Context

Hi Folks...
I have a Settings Table that includes a "maintenance_mode" boolean column.

My React Context Provider read this table
if (maintenance_mode == false) it renders a { children }
but if (maintenance_mode == true) it renders an React Component <Maintenance/>

I'm facing something weird.

If I run my Application with (maintenance_mode == false)
when I change the "maintenance_mode" column to "true" using the Supabase Table Editor.
The realtime changes reflects instantly and my React Context works perfectly and render the <Maintenance/> component as expected.

But If I revert the "maintenance_mode" column to "false" , nothing happens.
Only after refresh the page the changes is applied.

Does anybody face something in this way before??

Thanks for helping me in advance...

Kindly

Rubens
Was this page helpful?