-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
const [activeState, setActiveState] = useFluidState(false)
const whenFac: WhenFactoryFunction = ({ screenSize, metrics, state, stateValue }) => {
console.log("State value? ", stateValue)
return {
interpolation: [
{
styleKey: "transform.translateY",
inputRange: [0, 1],
outputRange: [0, 10],
},
],
}
}
const config = useFluidConfig( WhenState(activeState, whenFac))
....
In this example stateValue is always undefined when the factory runs regardless of the value of activeState
If I add a line activeState.value = activeState.active then stateValue gets passed to the factory function.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels