hooks
hooks copied to clipboard
Use `noop` instead of useEffect in useIsomorphicLayoutEffect
I believe this is equivalent when run server-side, but doesn't call into react so it's more efficient.
🤔 This is a ...
- [ ] New feature
- [ ] Bug fix
- [ ] Site / documentation update
- [ ] Demo update
- [ ] TypeScript definition update
- [ ] Bundle size optimization
- [ ] Performance optimization
- [x] Enhancement feature
- [x] Internationalization
- [ ] Refactoring
- [ ] Code style optimization
- [ ] Test Case
- [ ] Branch merge
- [ ] Other (about what?)
🔗 Related issue link
💡 Background and solution
📝 Changelog
| Language | Changelog |
|---|---|
| 🇺🇸 English | |
| 🇨🇳 Chinese |
☑️ Self Check before Merge
⚠️ Please check all items below before review. ⚠️
- [ ] Doc is updated/provided or not needed
- [ ] Demo is updated/provided or not needed
- [ ] TypeScript definition is updated/provided or not needed
- [ ] Changelog is provided or not needed
npm i https://pkg.pr.new/ahooks@2859
npm i https://pkg.pr.new/@ahooksjs/use-url-state@2859
commit: 225fe16
这个破坏原始 api 能力了吧
这个破坏原始 api 能力了吧
It doesn’t break the original api. I referenced changes from the use-isomorphic-layout-effect package.
这个破坏原始 api 能力了吧
It doesn’t break the original api. I referenced changes from the use-isomorphic-layout-effect package.
your are right