Buckets:
| ; | |
| var React = require('react'); | |
| var shallow = require('zustand/vanilla/shallow'); | |
| function useShallow(selector) { | |
| const prev = React.useRef(void 0); | |
| return (state) => { | |
| const next = selector(state); | |
| return shallow.shallow(prev.current, next) ? prev.current : prev.current = next; | |
| }; | |
| } | |
| exports.useShallow = useShallow; | |
Xet Storage Details
- Size:
- 347 Bytes
- Xet hash:
- e1433118019a6dad2fa8b7db3df230fc34baf1af1cd4cebd2acae26a66a1fc10
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.