Skip to content

Request status properties are instantly fulfilled for record that is background reloading #424

@evoactivity

Description

@evoactivity

The properties isLoading, isSuccessful, hasRan, isError are resolved immediately even if the request is still running.

https://github.com/evoactivity/ember-data-resources-repro
run pnpm start to bring up the server and ember app

findRecord is used here
https://github.com/evoactivity/ember-data-resources-repro/blob/main/front/app/components/channel.gjs

It is due to the record existing because it is loaded in the application route initially, but I need more relationships so run a find record again, which resolves immediately but is running a background reload. Using reload: true option makes it work as expected. Would there be some way to have an isBackgroundReloading property?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions