Move uuid generation to TalkContext

This commit is contained in:
Chi Vinh Le
2018-09-07 00:34:17 +02:00
parent e132087682
commit 845fbc1b1b
13 changed files with 92 additions and 100 deletions
@@ -49,6 +49,9 @@ export interface TalkContext {
/** Browser detection. */
browserInfo: BrowserInfo;
/** Generates uuids. */
uuidGenerator: () => string;
}
const { Provider, Consumer } = React.createContext<TalkContext>({} as any);