mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 02:08:28 +02:00
A bunch of fixes
This commit is contained in:
@@ -43,12 +43,11 @@ function useActiveCookieJarId() {
|
||||
return [id, setId] as const;
|
||||
}
|
||||
|
||||
export function useSubscribeActiveCookieJar() {
|
||||
export function useSubscribeActiveCookieJarId() {
|
||||
const { cookie_jar_id } = useSearch({ strict: false });
|
||||
useEffect(
|
||||
() => jotaiStore.set(activeCookieJarIdAtom, cookie_jar_id ?? undefined),
|
||||
[cookie_jar_id],
|
||||
);
|
||||
useEffect(() => {
|
||||
jotaiStore.set(activeCookieJarIdAtom, cookie_jar_id ?? undefined);
|
||||
}, [cookie_jar_id]);
|
||||
}
|
||||
|
||||
export function getActiveCookieJar() {
|
||||
|
||||
Reference in New Issue
Block a user