Explanation for updateStateModifier
Harsh1796 opened this issue · comments
Harsh Gupta commented
While going through this snippet
placement,
positionFixed,
modifiers: {
...modifiers,
arrow: {
...(modifiers && modifiers.arrow),
enabled: Boolean(arrowNode),
element: arrowNode,
},
applyStyle: { enabled: false },
updateStateModifier: {
enabled: true,
order: 900,
fn: updatePopperState,
},
},
});
I couldn't understand what updateStateModifier
is enabling here exactly. Going through the Popperjs documentation on Modifiers there wasn't anything much relatable as this is added as a 10th
attribute to modifiers which has the order equal to the highest order i.e of applyStyle
which has been set to false. Does this replace the work of applyStyle?