Skip to content

Commit 6d6e2bd

Browse files
committed
fix(web): forget the open project on sign-out
1 parent 644156c commit 6d6e2bd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎apps/web/src/App.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,9 @@ export function App() {
599599
// Query keys are not scoped to a person, so the cache belongs to whoever was
600600
// signed in. Clearing it also saves the empty cache over the stored one.
601601
useEffect(() => {
602-
if (auth === "signed-out") queryClient.clear();
602+
if (auth !== "signed-out") return;
603+
queryClient.clear();
604+
setSelected(null);
603605
}, [auth]);
604606
const [setupLater, setSetupLater] = useState(modelSetupDeferred);
605607
const [user, setUser] = useState<HubUser | null>(null);

0 commit comments

Comments
 (0)