Created
October 28, 2024 00:44
-
-
Save o-az/be61647a5441b669b6cba7ce6fc6a7e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const reactiveQueryArgs = <T>(cb: () => T) => { | |
const store = writable<T>(); | |
$effect.pre(() => { | |
store.set(cb()); | |
}); | |
return store; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment