Skip to content

Need sessionStorage.getState/sessionStorage.setState for doc example code #53575

Closed
@guardrex

Description

@guardrex

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

@javiercn ... This one needs your assistance.

On #53465, @shui106 reported that a WASM doc example for Save app state before an authentication operation with session storage was malformed. We had a PR come through from a reader that asked to set the FNs to getItem/setItem, but that was an incorrect change. I believe the original code example was correct.

The original code supplied for the doc came from ...

https://gist.github.com/javiercn/85a6d4ce46a78239ccb427baad3a66da#handling-token-request-errors

I don't see the FNs for sessionStorage.getState/sessionStorage.setState there. I think if I publish those FNs with the code example and switch the doc example code back to getState/setState that it will fix the problem.

Can you supply sessionStorage.getState/sessionStorage.setState FNs to go with your original code?

Expected Behavior

N/A

Steps To Reproduce

N/A

Exceptions (if any)

N/A

.NET Version

N/A

Anything else?

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.area-blazorIncludes: Blazor, Razor Componentsquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions