@react-hookz/web
Advanced tools
Comparing version 1.13.0 to 1.14.0
@@ -0,1 +1,8 @@ | ||
# [1.14.0](https://github.com/react-hookz/web/compare/v1.13.0...v1.14.0) (2021-05-03) | ||
### Features | ||
* new hook, useNetworkState ([#35](https://github.com/react-hookz/web/issues/35)) ([b5b082c](https://github.com/react-hookz/web/commit/b5b082cc67820fcf87f6fd529bf5cbaad91d9aff)) | ||
# [1.13.0](https://github.com/react-hookz/web/compare/v1.12.0...v1.13.0) (2021-05-02) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@react-hookz/web", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"description": "React hooks done right, for browser and SSR.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -54,28 +54,33 @@ # ![@react-hookz/web](.github/logo.png) | ||
- #### Lifecycle | ||
- [`useConditionalEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useconditionaleffect) | ||
- [`useConditionalEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useconditionaleffect--example) | ||
— Like `useEffect` but callback invoked only if conditions match predicate. | ||
- [`useConditionalUpdateEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useconditionalupdateeffect) | ||
- [`useConditionalUpdateEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useconditionalupdateeffect--example) | ||
— Like `useUpdateEffect` but callback invoked only if conditions match predicate. | ||
- [`useFirstMountState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usefirstmountstate) | ||
- [`useFirstMountState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usefirstmountstate--example) | ||
— Return boolean that is `true` only on first render. | ||
- [`useIsMounted`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useismounted) | ||
- [`useIsMounted`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useismounted--example) | ||
— Returns function that yields current mount state. | ||
- [`useMountEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usemounteffect) | ||
- [`useMountEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usemounteffect--example) | ||
— Run effect only when component is first mounted. | ||
- [`useRerender`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usererender) | ||
- [`useRerender`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usererender--example) | ||
— Return callback that re-renders component. | ||
- [`useUnmountEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useunmounteffect) | ||
- [`useUnmountEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useunmounteffect--example) | ||
— Run effect only when component is unmounted. | ||
- [`useUpdateEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useupdateeffect) | ||
- [`useUpdateEffect`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useupdateeffect--example) | ||
— Effect hook that ignores the first render (not invoked on mount). | ||
- #### State | ||
- [`useMediatedState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usemediatedstate) | ||
- [`useMediatedState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usemediatedstate--example) | ||
— Like `useState`, but every value set is passed through a mediator function. | ||
- [`usePrevious`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useprevious) | ||
- [`usePrevious`](https://react-hookz.github.io/web/?path=/docs/lifecycle-useprevious--example) | ||
— Returns the value passed to the hook on previous render. | ||
- [`useSafeState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usesafestate) | ||
- [`useSafeState`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usesafestate--example) | ||
— Like `useState`, but its state setter is guarded against sets on unmounted component. | ||
- [`useToggle`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usetoggle) | ||
- [`useToggle`](https://react-hookz.github.io/web/?path=/docs/lifecycle-usetoggle--example) | ||
— Like `useState`, but can only become `true` or `false`. | ||
- ### Sensor | ||
- [`useNetworkState`](http://localhost:6006/?path=/docs/sensor-usenetwork--example) | ||
— Tracks the state of browser's network connection. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84042
105
1580
86