"No current database" error when moving to home page from schema page #3720
Labels
regression
restricted: maintainers
Only maintainers can resolve this issue
work: frontend
Related to frontend code in the mathesar_ui directory
Milestone
Description
/http://localhost:8000/db/<db_id>/<schema_id>/
where tables are listed./
).Some possible causes
DatabaseRoute
is unmounted while visiting/
, which setsdatabasesStore.currentDatabaseId
toundefined
.databasesStore.currentDatabase
beingundefined
.tables
store uses thecurrentDatabase
store. The tables store is initialized when visiting the schema page.currentDatabase
store in use.tables
store are long living and live on the highest app context, they never get destroyed. This is by design. (Eg.,currentTablesData
derived store).currentDatabase
subscribed even when moving to the base/
route.sync
action during unsubscribing if the store had been set a value before (i.e. inited), which forcibly syncs thecurrentDatabase
store throwing the error since the value is undefined.Expected behavior
The text was updated successfully, but these errors were encountered: