FunctionsuseChaynsHistoryParamsuseChaynsHistoryParams CallableuseChaynsHistoryParams(): [Record<string, string>, (params: Record<string, string>, opts?: ChaynsHistoryNavigationCommitOptions) => void]Returns the current query params and a setter for the nearest ChaynsHistoryLayer. Setter replaces all params on this layer; merge manually if needed: setParams({ ...params, newKey: 'val' }). Re-renders only when params change.Returns [Record<string, string>, (params: Record<string, string>, opts?: ChaynsHistoryNavigationCommitOptions) => void]
Returns the current query params and a setter for the nearest ChaynsHistoryLayer. Setter replaces all params on this layer; merge manually if needed:
setParams({ ...params, newKey: 'val' }). Re-renders only when params change.