Skip to content

Problem being solved by UI State Fragments #4

@atotic

Description

@atotic

I do not understand what problems are UI state fragments trying to solve?
Is this a standardized way of storing state inside hash?

Handling state in SPAs is a complex topic. Page state is composed of
different data types:

ephemeral: form values, scrolling positions.
ephemeral data should not be exposed in the URL. It disappears after force
reload. Ephemeral data is not shared when URL is forwarded.

enduring: enduring data is exposed in the URL. In SPA, this is usually
the "page" you are on. When sharing the URL, recipient will see the same
page.

What is confusing me is that I consider UI state to be ephemeral, not
expoesed in the URL.

This proposal explicitly stores UI state in the URL.

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