Skip to content

Commit bdf299c

Browse files
committed
[UPDATE] README.md
1 parent a611f91 commit bdf299c

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

packages/react-tools/README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
- [x] useArray
1515
- [x] useProxyState
1616
- [x] useSyncExternalStore
17+
- [ ] useDerivedState (https://hackernoon.com/whats-the-right-way-to-fetch-data-in-react-hooks-a-deep-dive-2jc13230)
18+
- [ ] useStateValidator (???)
1719
- [ ] useStore
18-
- [ ] createStore
20+
- [ ] createStore (example: https://github.com/streamich/react-use/blob/master/src/factory/createGlobalState.ts)
1921
- [ ] usePubSubStore (with pusSub model)
2022
- [ ] useBroadcast (refer to https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API)
2123

@@ -29,7 +31,8 @@
2931
- [x] useRerender
3032
- [x] useIsMounted
3133
- [ ] useInsertionEffect (polyfill???)
32-
- [ ] useDeferredValue (polyfill - an idea can be use setTimeout inside useEffect)
34+
- [ ] useDeferredValue (polyfill - an idea can be use setTimeout inside useEffect or this https://lilibraries.github.io/hooks/useDelayedValue/)
35+
- [ ] useLogger
3336

3437
- __PERFORMANCE__
3538
- [x] useCallbackCompare
@@ -48,7 +51,7 @@
4851
- [x] useEvents
4952
- [x] useEventListener
5053
- [x] useEventDispatcher
51-
- [x] usePerformAction
54+
- [x] usePerformAction (se non si riesce a fare il polyfill di useDeferredValue, valutare di farlo utilizzando requestIdleCallback)
5255
- [x] useDocumentVisibility
5356
- [x] useHover
5457
- [x] useResponsive
@@ -63,7 +66,9 @@
6366
- [x] useScrollIntoView
6467
- [x] useMouse
6568
- [x] useLongPress
69+
- [ ] useBeforeUnload — shows browser alert when user try to reload or close the page.
6670
- [ ] useKeysEvents
71+
- [ ] useHotKeys (https://mantine.dev/hooks/use-hotkeys/)
6772
- [ ] useOrientation
6873
- [ ] useImageOnLoad
6974
- [ ] usePinchZoom
@@ -77,6 +82,7 @@
7782
- [x] useDebounce
7883
- [x] useThrottle
7984
- [x] useActiveElement
85+
- [ ] useRaf (with a reference to call itself again)
8086
- [x] useTimeout
8187
- [x] useInterval
8288
- [x] useTextSelection
@@ -87,11 +93,22 @@
8793
- [x] useTitle (change document.title but also document.head.title nodeElement)
8894
- [x] useIdle
8995
- [x] useFullscreen (check browser compatibility)
96+
- [ ] useBattery
97+
- [ ] useGeolocation
9098
- [ ] useShare
9199
- [ ] useScreenShare
92100
- [ ] useFetch (with suspense ???)
93101
- [ ] useAsync
102+
- [ ] useAudio (???)
103+
- [ ] useVideo (???)
104+
- [ ] useOs
105+
- [ ] useEyeDropper (refer to https://developer.mozilla.org/en-US/docs/Web/API/EyeDropper_API)
106+
- [ ] useMedia
107+
- [ ] useMediaDevices
94108
- [ ] useMediaStream
109+
- [ ] useSpeech (https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance#examples)
110+
- [ ] useDeviceMotion (??? mobile)
111+
- [ ] useVibrate (??? mobile)
95112
- [ ] useObservable — tracks latest value of an Observable
96113

97114
- __UTILS__

0 commit comments

Comments
 (0)