I am building node and browser target modules in my project.
I was wondering if there were commonly used techniques that may allow me to strip the factory function from useAsync to essentially allow to be only ever run on the server, and to mask the existence of the upstream server (used in the fetch).
I am building node and browser target modules in my project.
I was wondering if there were commonly used techniques that may allow me to strip the factory function from
useAsync
to essentially allow to be only ever run on the server, and to mask the existence of the upstream server (used in the fetch).This is likely going to have to be bundler specific.