I would like to use the loader plugin to load a file from disk.
I have tried const { provides, isLoading, ready } = useLoaderCapability() in my React component, but
provides is always null
isLoading is always true
- the
ready promise never resolves
This means I have no hook to load a file.
The only workaround I have found is creating an entirely new engine on each load and setting the file in the loader plugin config.
There don't seem to be any docs on the Loader plugin either, I've had to pick through github code and other issues / examples to try to understand the API.
I would like to use the loader plugin to load a file from disk.
I have tried
const { provides, isLoading, ready } = useLoaderCapability()in my React component, butprovidesis always nullisLoadingis always truereadypromise never resolvesThis means I have no hook to load a file.
The only workaround I have found is creating an entirely new engine on each load and setting the file in the loader plugin config.
There don't seem to be any docs on the Loader plugin either, I've had to pick through github code and other issues / examples to try to understand the API.