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