Skip to content

Releases: dcwither/react-editable

v0.3.1

Choose a tag to compare

@dcwither dcwither released this 25 Mar 03:04

Performance Improvements

Memoize values returned by useEditable to make it possible to short circuit rendering of child components based on function and object equality.

Added tests to confirm values remain the same/change based on expected behavior.

v0.3.0

Choose a tag to compare

@dcwither dcwither released this 24 Mar 20:10

Upgrade to Support Hooks

Full rewrite, switch package name to @dcwither/react-editable. Adopt hooks to replace render props, and also expose a Context API for easier prop drill-down. Package size has also reduced to 1.4KB gzipped from 2.2KB.

v0.2.0

Choose a tag to compare

@dcwither dcwither released this 03 May 04:02

Full rewrite of react-editable component in typescript providing more confidence in code quality as well as types for typescript projects.

Also some minor changes to the API

  • Exposes an component that accepts as a child a render prop - more intuitive alternative to an HOC
  • Consolidates onSubmit, onUpdate, onDelete into the more flexible onCommit which accepts a message that can identify its purpose.