usePageValues
The usePageValues
hook allows you to access and modify page meta values within your bricks.
Usage Example
Hook Signature
The usePageValues
is called without arguments.
It returns an array containing the page values and a setter function: [pageValues, setPageValues]
.
pageValues
is an object with the structure shown belowsetPageValues
is a function to set the values (merging the object one level deep).
Returned Values
The returned object has the following structure:
For more details, refer to the following type definitions: