mirror of
https://github.com/wassname/talk.git
synced 2026-08-18 12:30:39 +08:00
Move uuid generation to TalkContext
This commit is contained in:
@@ -49,6 +49,9 @@ export interface TalkContext {
|
||||
|
||||
/** Browser detection. */
|
||||
browserInfo: BrowserInfo;
|
||||
|
||||
/** Generates uuids. */
|
||||
uuidGenerator: () => string;
|
||||
}
|
||||
|
||||
const { Provider, Consumer } = React.createContext<TalkContext>({} as any);
|
||||
|
||||
Reference in New Issue
Block a user