-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with React Native #389
Comments
Hm. We don't really need those to be unpredictable, so we could default to |
Yayyyy actual alpha feedback! (this is exactly why I've been publishing these alphas - to give us a chance to iterate on redesigning APIs, and hopefully get just enough people trying them to point out any rough spots.) And yes, let's do that. |
Awesome, thanks guys! |
Great. Any specific feedback on how it feels to actually use the new alpha APIs? Anything that's broken / hard to use / not clear / not sufficiently documented? |
I wasn't able to test some actions I dispatched inside it, but I don't think that's actually a good practice. |
Still about the error, do you know what's causing it? Maybe I can help to fix it |
Yeah, the "error" is due to the fact that we're doing |
In fact, given how small the source is for this, I'm inclined to say we just inline it ourselves: https://github.com/ai/nanoid/tree/master/non-secure I had opted to stick with actually depending on Let's just paste that in and drop the dependency. |
Realisticly though, what hinders us from doing something much simpler? let id = Date.now(); // if we want to have a starting point, otherwise even 0 might be fine
export function getNextId(){
return ++id;
}; |
Could you give a code example of that? Sounds like it should be testable. |
@phryneas - you're right, double-checked and the problem was on my side |
Just published https://github.com/reduxjs/redux-toolkit/releases/tag/v1.3.0-alpha.10 , which inlines |
@markerikson - just tried, the change fixes the issue. I'll close it. |
I know this release is still in alpha, but I want to already point this out, maybe someone has experienced this before.
I'm testing with
1.3.0-alpha
and keep getting the error:The text was updated successfully, but these errors were encountered: