Skip to content

Sideloaded/preloaded data not being returned from Model.find() #314

Description

@cjroebuck

At startup I am loading a few models with JSON that is bootstrapped into my initial page load, so e.g. App.Model.load(modelJson).

Now later on in a routes model hook, I do App.Model.find(), I expected this to return an array of instantiated App.Model instances using the data which was previously sideloaded. Instead it does an Ajax call to retrieve the data.

Another thing is, if I use App.Model.find(1).. it does return a model instance from sideloaded data, rather than try to retrieve from the server.

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