I have a “goals” collection fetching from supabase with a filter
It filters based on the user active project. If the user has no active project, it doesn`t fetch anything. When the user selects a project, though, I can only see the goals (where goal.project_id = thisuser.project_id) when I refresh the page…
I am fetching users-info and goals collections when the user selects the project and when loading any page that uses the goals colletction, still, I only see the goals after the project is changed when I refresh the page…
Why is this happening?