-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Persist last selected database only for sql editor via local storage #32598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persist last selected database only for sql editor via local storage #32598
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Skipped Deployments
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Testing locally and I'm seeing the selector being set properly, but the actual queries are still being run against primary, unless I set it again. Do we have to |
ahh sorry i was missing a useEffect hence why - have pushed a fix up! 🙏
This should be okay, since the useEffect will only trigger if _selectedDatabaseId is being passed as a prop - which only the SQL editor will be doing so for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
- Tested on preview
…upabase#32598) * Persist last selected database only for sql editor via local storage * Add missing useEffect
No description provided.