Skip to content

Commit

Permalink
Make push()/update() navigate, and change state interface
Browse files Browse the repository at this point in the history
Closes #36 by moving from appHistoryEntry.state to getState() and setState() methods. This adds the ability to modify the state of non-current entries as a bonus.

Solves much of #42 by making push() and update() navigate by default, although it does not yet include the initiator idea.

As part of this we simplify update() significantly, since now if you want to change state without performing a navigation, you would use setState(). This makes the URL argument required for it. For symmetry, I removed url from the options for push().
  • Loading branch information
domenic committed Mar 3, 2021
1 parent b2e3052 commit fb58348
Showing 1 changed file with 144 additions and 123 deletions.
Loading

0 comments on commit fb58348

Please sign in to comment.