Skip to content

Support background refresh #24

@Tbhesswebber

Description

@Tbhesswebber

Being able to configure background refresh within loaders would be incredibly valuable. Currently, I'd need to add side-effects and manage them along with abort controllers on my own, but that should be a pretty standard pattern across each loader.

In thinking about how I would want to leverage this, I realized it may be nice to pass functions to an optional triggers property, which would then allow users to do things like avoid refreshes in idle states, explicitly refresh when a window gains focus or certain requests are made, etc.

I'm more than happy to tackle this, but I think it would be valuable to discuss what the ideal interface would be before really diving in.

Metadata

Metadata

Assignees

No one assigned

    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