setParams

Updated:

Takes an object with keys and values that will be stored in the URL.

Description

The setParams takes an object with keys and values that will be stored in the URL and emitted to callers of paramsChanged. This method is used in conjunction with clearParams and paramsChanged. The params store acts as traditional query params where you can get and persist data to a URL for use later or upon refresh. The keys are additive to what is already there and will overwrite any existing key.

Signature

tecton.actions.setParams(params: Record<string, string>): void;

Usage

Set filter parameters.

tecton.actions.setParams({ filter: 'pending', sort: 'date' });

Update a single parameter (others remain unchanged).

tecton.actions.setParams({ page: '2' });

Parameters

params

Release Notes

Tecton
0.1.38

Platform Support

UUX
Config