Comments (3)
The errors would be interesting, but probably just missing polyfills since we compile via babel-env without browser config.
Looking through the code there doesn't seem to be anything special. It's using Set, Object.keys, Object.is.
It's probably the former (Obj.id). If you add a core-js polyfill, it will surely work. Could you import zustand/cjs and try adding corejs?
from zustand.
It indeed worked. Thanks a lot :)
from zustand.
Not sure if I should open up another issue, so I thought I'd ping here first: is there a reason that he ES Module source isn't transpiled for IE11 as well? If I am importing this with ES Module syntax with webpack for a web target, it's going to pick up the module
entry point in package.json
which includes stuff like Object.assign
(a non-ES Module ES6) and not transpile it. I'd then have to transpile zustand
myself. Is this intended?
Some reasoning/context: webpack/webpack#1979 (comment)
EDIT: Actually, looking at the build, it doesn't seem like Object.assign
or Object.is
are being transpiled anywhere even though
Sorry, I was confusing transformations with polyfills. However, it might help in the README to make list of polyfills that might be necessary if targeting IE11 (as that seems to have explicit support)
from zustand.
Related Issues (20)
- When the set operation is executed in the 「then callback」, the 「set operation」 takes nearly a hundred times longer.
- Resetting Multiple Stores Example Doesn't Work with the Currying Required Elsewhere for Typescript Support
- 123e
- In nextjs13's app directory, how can the server components send Fetch?
- Unnecessary Renders Triggered by a Hook after Migrating to Zustand
- with immer midderware, Array type wrong HOT 2
- The reactNode is stored in the store, sometimes causing the component to lose update. HOT 1
- Is there a way to reset data when switching routes? The previous method cannot take effect#1192
- Type problem with persist HOT 3
- Reset store not working on log out
- I can't update state with new data from Tanstack Query HOT 2
- The app hanging when initializing the store with and array of objects. HOT 4
- Is there any chance to simplify types?
- How to move the router state to store?
- Website graphics rendering issues (Linux) HOT 3
- shallow not support nested object HOT 1
- Are these two methods exactly the same? HOT 1
- It’s not recommended to suspend a render based on a store value returned by useSyncExternalStore.
- RFC: How is v5-alpha? HOT 11
- should useShallow add into the documents?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zustand.