You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up a small watcher based on Deno.watchFs for my project. It works well for a static case, i.e., initial load of my "application".
The problem is that there is dynamic functionality in my use case meaning I would need some way to add paths to watch afterDeno.watchFs has run already.
What is the correct strategy to add paths to Deno.watchFs?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I set up a small watcher based on
Deno.watchFs
for my project. It works well for a static case, i.e., initial load of my "application".The problem is that there is dynamic functionality in my use case meaning I would need some way to add paths to watch after
Deno.watchFs
has run already.What is the correct strategy to add paths to
Deno.watchFs
?I don't see a related API at https://deno.land/[email protected]?s=Deno.watchFs but that doesn't mean it doesn't exist.
Maybe one potential approach would be to create multiple watchers on demand instead of trying to shoehorn everything through a single one.
Beta Was this translation helpful? Give feedback.
All reactions