Skip to content

Unescape preloaded State #1

@tatsuroro

Description

@tatsuroro

<script id="initial-data" type="text/plain" data-json="${escape(preloadedState)}"></script>

return JSON.parse(initialDataString);

About passing preloaded state from server rendered html to client JS,
isn't any unescape needed around where parsing preloaded state?

It seems not working for that JSON.stringified state is escaped.

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