Skip to content

Releases: VerZsuT/react-afc

v2.3.2

17 Sep 06:53
Compare
Choose a tag to compare
  • Injectable now supports static properties
  • Interfaces Constructable and IInjectable are now exported

v2.3.1: Bug fix

15 Sep 19:00
Compare
Choose a tag to compare
  • Fixed bug with spread operator (...state from reactive)

v2.3.0: Injectable, inject

14 Sep 12:28
Compare
Choose a tag to compare

Changes

  • Fixed bug in strict mode
  • Added decorator Injectable
  • Added function inject

Renamed

  • inRender -> onRender
  • getDispatcher -> getDispatch
  • afterMount -> onMount
  • afterDraw -> onDraw
  • afterUnmount -> onDestroy

Deprecated

  • inRender
  • getDispatcher
  • afterMount
  • afterUnmount
  • afterDraw

v2.2.0: 'reactive' and 'ref'

08 Sep 18:07
Compare
Choose a tag to compare

Changes

  • Added reactive function.
  • Added ref function.

v2.1.1: Optimization

07 Sep 14:30
Compare
Choose a tag to compare
  • During the first render (when the constructor is called), there is no more unnecessary updating of props.
  • createState, getDispatcher, useActions, afterUnmount, afterMount, afterDraw no longer adds hook logic during each call, which makes its performance independent of the number of calls.

v2.0.0

05 Sep 07:49
Compare
Choose a tag to compare

Changes

  • Added useActions (allows not to use useDispatcher)

Breaking changes

  • The createState function has been changed (now it returns an object, not an array)

v1.5.5

20 Aug 11:33
Compare
Choose a tag to compare
  • Optimization

v1.5.3

16 Aug 06:41
Compare
Choose a tag to compare

Changes

  • Added memoized function

v1.5.2

13 Aug 10:15
Compare
Choose a tag to compare

Новые функции

  • Убрана минимизация с помощью babel
  • Добавлена функция afterMount (аналог useEffect(..., []))
  • Добавлена функция afterDraw (аналог useLayoutEffect(..., []))

v1.5.0

30 Jul 08:38
Compare
Choose a tag to compare
  • Optimization
  • added afc export
  • added afcMemo export

Breaking changes:

  • removed default export (now it's afcMemo)