feat: open last workspace when back or refresh affine (#1413)

Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
Qi
2023-03-09 02:40:25 +08:00
committed by GitHub
parent 867ea9cf2b
commit 0db7868a6a
5 changed files with 65 additions and 14 deletions

View File

@@ -0,0 +1,7 @@
import { useAtomValue } from 'jotai';
import { lastWorkspaceIdAtom } from '../current/use-current-workspace';
export function useLastWorkspaceId() {
return useAtomValue(lastWorkspaceIdAtom);
}