Skip to main content

QueryParamUrlSyncEvent

Values captured after importing a complete query parameter synchronization.

Import

import type { QueryParamUrlSyncEvent } from '@ngblocks/form-nodes/router';

When to use it

Read the reason and typed committed value snapshot after URL hydration or restoration.

Declaration

type QueryParamUrlSyncEvent<TValues extends Record<string, unknown> = Record<string, unknown>> = {
readonly reason: 'initial' | 'navigation';
readonly values: Readonly<TValues>;
};

Type parameters

ParameterConstraintDefault
TValuesRecord<string, unknown>Record<string, unknown>

Declared members

The declaration above also includes inherited contracts and overloads where applicable.

MemberMeaning
reasonInitial hydration or a later accepted URL restoration.
valuesCurrent committed source values, indexed by configured query names. The map is a shallow readonly snapshot; object and array values are not cloned.