Skip to content

v1.0.0-rc.0

Compare
Choose a tag to compare
@TrySound TrySound released this 11 Jun 12:12
· 38 commits to master since this release

Breaking changes

  • onChange callbacks accepts the value equal to initial (thanks to @renatorib)
-<Value initial={0} onChange={({ value }) => console.log(value)}>
+<Value initial={0} onChange={value => console.log(value)}>

Affected components: Active, Counter, Focus, FocusManager, Hover, Input, List, Set, Toggle, Touch, Value.

  • is prefix in values is removed (thanks to @TrySound)
<Hover>
-  {({ isHovered, bind }) => null}
+  {({ hovered, bind }) => null}
</Hover>;

<Active>
-  {({ isActive, bind }) => null}
+  {({ active, bind }) => null}
</Active>

Affected components: Active, Focus, FocusManager, Hover, Touch.

Chore & bugs