Skip to content

Control page change with a key in state#221

Open
ftaiolivista wants to merge 1 commit intocyclejs-community:masterfrom
ftaiolivista:patch-1
Open

Control page change with a key in state#221
ftaiolivista wants to merge 1 commit intocyclejs-community:masterfrom
ftaiolivista:patch-1

Conversation

@ftaiolivista
Copy link
Copy Markdown

Currently any new history change trigger a page component regeneration.

Sometimes may be helpful to update the url without trigger a page component recalc.

Proposed solution use a key attribute in the history object state.

If a key is present and the key of the new state is equal to the key of the old state the page component recalc is not triggered.

Currently any new history change trigger a page component regeneration.

Sometimes may be helpful to update the url without trigger a page component recalc.

Proposed solution use a key attribute in the history object state.

If a key is present and the key of the new state is equal to the key of the old state the page component recalc is not triggered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant