mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 01:58:39 +02:00
Move JS monorepo packages to folder
This commit is contained in:
@@ -16,9 +16,12 @@ export function useLicense() {
|
||||
|
||||
// Check the license again after a license is activated
|
||||
useEffect(() => {
|
||||
listen('license-activated', () => {
|
||||
queryClient.invalidateQueries({ queryKey: CHECK_QUERY_KEY }).catch(console.error);
|
||||
}).catch(console.error);
|
||||
const unlisten = listen('license-activated', async () => {
|
||||
await queryClient.invalidateQueries({ queryKey: CHECK_QUERY_KEY });
|
||||
});
|
||||
return () => {
|
||||
unlisten.then((fn) => fn());
|
||||
};
|
||||
}, []);
|
||||
|
||||
const CHECK_QUERY_KEY = ['license.check'];
|
||||
|
||||
Reference in New Issue
Block a user