-
-
Notifications
You must be signed in to change notification settings - Fork 9
[ React Native ] "Your browser does not have secure random generator. If you don’t need unpredictable IDs, you can use nanoid/non-secure." #27
Comments
@naomiHauret thanks |
I don't have react-native project, but you can help us with debug that file: https://github.com/sergeysova/redux-symbiote/blob/master/src/nanoid.js |
https://github.com/sergeysova/redux-symbiote/blob/master/src/nanoid.js works fine. The problem is that in NPM not loaded version 3.2 (which contains this fix) |
@weyheyhey Please, check is the problem solved |
@sergeysova Problem solved. Thank you) |
@sergeysova Still it also breaks in ie10 💩 Which is supported or not? |
@yyynnn redux-symbiote is not tested in ie10. |
@sergeysova has funded $5.00 to this issue.
|
I checked with browserstack. IE10, IE9 works. As an option, temporarily use the third argument in import { createStore } from 'redux'
import { createSymbiote } from "redux-symbiote";
const initialState = 0;
const symbiotes = {
INCREMENT: state => state + 1,
DECREMENT: state => state - 1
};
const { actions, reducer } = createSymbiote(
initialState,
symbiotes,
"accounts/loading"
);
const store = createStore(reducer);
console.log(`Should be 0: ${store.getState()}`)
store.dispatch(actions.INCREMENT())
store.dispatch(actions.INCREMENT())
store.dispatch(actions.INCREMENT())
store.dispatch(actions.DECREMENT())
console.log(`Should be 2: ${store.getState()}`)
console.log(store, actions) |
@kldkv Thank you! |
@sergeysova has rewarded $4.50 to @kldkv. See it on IssueHunt
|
Hi ! First of all, thanks for all the work you did on redux-symbiote. It's a wonderful lib, writing redux-related code has never been so easy.
I'm developing 2 apps in React Native with Expo, and of course, redux-symbiote.
I upgraded
redux-symbiote
version from v3.0.2
to v3.1.0
and had this error since :I tried replacing
const nanoid = require("nanoid")
withconst nanoid = require("nanoid/non-secure")
insrc/index.js
but it didn't do the trick.My workaround was to rollback to v
3.0.2
to get both my apps working again.IssueHunt Summary
kldkv has been rewarded.
Backers (Total: $5.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: