Svelte with tanstack query
I have folder queries/streamQuery.ts in my app. Its content of this file:
then somewhere in my .svelte files, where I need streams, Im using this like that:
$dataRefetchInterval is some global store acted like app settings. I would like make my .svelte component not aware, that this stream needs some configuration. From the point of view of .svelte component there is no need to know how to configure this stream. Is there any way to handle this ? As far as I know, I cant use reactive store inside regular .ts function?
then somewhere in my .svelte files, where I need streams, Im using this like that:
$dataRefetchInterval is some global store acted like app settings. I would like make my .svelte component not aware, that this stream needs some configuration. From the point of view of .svelte component there is no need to know how to configure this stream. Is there any way to handle this ? As far as I know, I cant use reactive store inside regular .ts function?