- feat: support dependency array as a second argument of all middleware. This ensures stateful options can be kept reactive when making them derived (passing a function that returns the options):
const [value, setValue] = React.useState(0);
const offset1 = offset(value); // reactive
const offset2 = offset(() => value); // NOT reactive
const offset3 = offset(() => value, [value]); // reactive
This also includes size
's apply
function:
size(
{
apply() {
value; // reactive
},
},
[value],
);
- fix(types): replace
React_2
withReact
in generated .d.ts files
- Update dependencies:
@floating-ui/dom@1.6.1
- Update dependencies:
@floating-ui/dom@1.6.0
- d3a773b: fix: make
whileElementsMounted
reactive with respect from changing from a function toundefined
- 4c04669: chore: exports .d.mts types, solves #2472
- Updated dependencies [4c04669]
- Updated dependencies [0d18e37]
- @floating-ui/dom@1.5.4
- 9d22d831: fix: package type import
- c1965f65: refactor: minor jsdoc/type improvements