Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve/app/workspace switcher (#263)
* optimistically set current workspace w/ switcher - standardized infinite item context - when workspace is switched, immediately switch to existing query data for that workspace (if it exists, even if stale) or set to empty (if that query hasn't been run yet). then invalidate route. this is currently done for all {item}.byWorkspace routers - use GridSkeleton for empty placeholder if query is actively fetching * close workspace switcher before async invalidate * remove console.logs from useSetWorkspace * return early when pushing to currentPath w/ new handle - if currentWorkspace.handle === workspace.handle, return before any currentPath nonsense - accidentally lost the 'return' when deleting the console.log
- Loading branch information