Skip to content

useLoaderCapability is never ready #229

Description

@Ryan-Palmer

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
Image

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions