[solved] DB change not being reactive?
Isn't
createResource
reactive? I have one and when I changed the value in the db the fetcher didn't respond. Or is reactivity just within the code base interactivity? Or should I be using createMemo
So, I tried createMemo
together with createEffect
but that doesn't seem to be working either. My initial try was with createResource
Thoughts?
2 Replies
It's reactivity within the codebase, createResource doesn't know anything about the db or how to handle its events
Ok. So I updated the database in my code (rather than directly in the db), and I'm trying to rerun the fetcher, which I can, but the new result isn't filtering through to all the vars,
currentUserResource().currentProfile.data[0].first_name
Ok, I think I solved that issue.
But suddenly I'm having a CORS issue. Ugh. I have been making calls to the supabase database for a couple of days now, no issues. ( //<db-identifier>.supabase.co). I initially had this issue and only changed the remote url from https
to http
as my localhost
doesn't have an ssl.
The CORS issue is saying the issue is a redirect on the preflight. Isn't that up to the response server to answer with correct headers?