Open
Description
Proposal:
export interface AppHistoryUpdateCurrentOptions {
state: unknown;
}
should allow for an info option:
export interface AppHistoryUpdateCurrentOptions {
state: unknown;
info: unknown
}
Correspondingly, the change event should provide that info option in the event:
export declare class AppHistoryCurrentChangeEvent extends Event {
constructor(type: string, eventInit: AppHistoryCurrentChangeEventInit);
readonly navigationType: AppHistoryNavigationType | null;
readonly from: AppHistoryEntry;
readonly info: unknown
}
Some use cases that come to mind:
- Be able to indicate which portion of the state changed, for better pinpointing reactive updates
- Provide information about what prompted the change (for example expand a details tag vs closing it)