Skip to content

Commit a240bbe

Browse files
committed
fix(client): Fix React Native support
Use `nanoid/non-secure` for chat IDs because React Native doesn’t support the plain `nanoid` implementation. (Chat IDs are for convenience only so security is unimportant and due to the lack of persistence collisions are also relatively unlikely.)
1 parent 6056482 commit a240bbe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* https://opensource.org/licenses/MIT.
77
*/
88

9-
import { nanoid } from 'nanoid';
9+
import { nanoid } from 'nanoid/non-secure';
1010
import 'svelte';
1111
import type { Dispatch, StoreEnhancer } from 'redux';
1212
import { createStore, compose, applyMiddleware } from 'redux';

0 commit comments

Comments
 (0)