useGuthrieProperties()
ts
function useGuthrieProperties(properties?, scopedVariables?): UseGuthriePropertiesReturn;Defined in: hooks/properties.tsx:52
Resolves dynamic properties into usable values.
This hook processes a record of DynamicValue entries and separates them into:
static: resolved values (static, variables, function results)dynamic: child elements that need to be rendered later
Parameters
| Parameter | Type | Description |
|---|---|---|
properties? | Record<string, DynamicValue> | Record of dynamic properties to resolve |
scopedVariables? | Variables | Variables to prioritize |
Returns
Object containing resolved (static) and recursive (dynamic) properties, or null if no properties are provided
Remarks
Supported dynamic value types:
static→ returned as-isvariable→ resolved via touchByAccesschild→ stored for recursive renderingfn→ resolved via callFn
Since
1.0.0
Author
David Schummer
Author
Simon Kovtyk