Skip to content

Problem getting data from local storage with blazor for large files #21929

@musictopia2

Description

@musictopia2

I am using the function
var serialisedData = await js.InvokeAsync("localStorage.getItem", key);
which interops with javascript. It works fine for small amount of information. However, if there is a large amount of information being returned it hangs.
For example, if i am retrieving a list of 24 objects, it works. However, if the list contained over 100 objects for example, it hangs. The data for sure saves with no problem. However, upon retrieving, it does not even make it past the invokeasync function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions