Move JS monorepo packages to folder

This commit is contained in:
Gregory Schier
2025-01-04 16:55:18 -08:00
parent 75ead9cc8a
commit 40adce921b
32 changed files with 427 additions and 310 deletions

View File

@@ -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'];