You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be useful to have a general entrieschange event for whenever the result of navigation.entries() would return a new value. In addition to the cases where currententrychange and dispose fire currently, this would also fire if new entries grow in the back of the list due to #45, or if we allow other modifications like #9.
The use cases this would enable, in addition to the above, are:
Displaying a live-updating in-page history navigation list.
The event object here could contain e.g. addedEntries, removedEntries, updatedEntries. Or we could have the developer save the old entries list and compare manually.
The text was updated successfully, but these errors were encountered:
Maybe if the entires list gets long this will become a bit more costly.. which might be a case for including these... I would imagine it would be easier for the navigation api to make sense of where entries are added/removed/updated, vs being calculated by a user every time.
currententrychange uses the name from for its related entry, instead of fromEntry
Could entrieschange use added, removed, updated instead?
Continued from #148:
It might be useful to have a general
entrieschange
event for whenever the result ofnavigation.entries()
would return a new value. In addition to the cases wherecurrententrychange
anddispose
fire currently, this would also fire if new entries grow in the back of the list due to #45, or if we allow other modifications like #9.The use cases this would enable, in addition to the above, are:
Displaying a live-updating in-page history navigation list.
All the use cases that the per-entry
dispose
event is used for, but perhaps in a cleaner fashion. See also discussion in An event for when entries disappear for other reasons than forward-pruning #72.The event object here could contain e.g.
addedEntries
,removedEntries
,updatedEntries
. Or we could have the developer save the old entries list and compare manually.The text was updated successfully, but these errors were encountered: