Releases: VerZsuT/react-afc
Releases · VerZsuT/react-afc
v3.4.1
v3.3.3
v3.3.2
v3.3.1
v3.3.0: ReactDevtools and optimization
Breaking changes
- Removed
pafc/pafcMemo
- Removed
fafc/fafcMemo
- Removed type
FAFC
- Removed type
PAFC
- Removed type
FastProps
Other changes
- Optimized props updating
- Fixed component names in ReactDevtools
- Added state inspection in ReactDevtools
useRef
now returnsMutableRefObject
v3.2.0
Breaking changes
- Moved
wrapStaticHook
/wrapDynamicHook
from react-afc/compatible to react-afc - Removed
AFC
/FAFC
/PAFC
types exports (available in react-afc/types) - Removed
Injectable
/Inject
- Renamed all
curr
fields toval
(fafc
/wrapDynamicHook
) - Now
useMemo
return value is{ val: <memoized_value> }
- Now
useRef
return value is always non-reactive
Dependencies changes
- Removed
redux
(provided byreact-redux
) - Changed
react
version from18.x.x
to>=16.8.0
- Changed
react-redux
version from8.x.x
to>=7.1.0
v3.1.1
v3.1.0
v3.0.0
Changes
- Added
useState
- Added
useForceUpdate
- Added
wrapStaticHook
- Added
wrapDynamicHook
Breaking changes
- Renamed
onMount
->useOnMount
- Renamed
onDestroy
->useOnDestroy
- Renamed
onDraw
->useOnDraw
- Renamed
onRender
->useOnRender
- Renamed
effect
->useEffect
- Renamed
layoutEffect
->useLayoutEffect
- Renamed
createState
->useObjectState
- Renamed
reactive
->useReactive
- Renamed
ref
->useRef
- Renamed
handleContext
->useContext
- Renamed
getDispatch
->useDispatch
- Renamed
onceCreated
->useOnceCreated
- Renamed
memoized
->useMemo
useRef:
- Changed
isReactive
default value tofalse
- Renamed
value
->current
useContext
- Now returns an object of type
{ val: <context_value> }