mirror of
https://github.com/hexastack/hexabot
synced 2025-04-10 15:55:55 +00:00
fix: update createContext defaultVlaue
This commit is contained in:
parent
d44d7075ab
commit
763ed82512
@ -57,10 +57,9 @@ export interface IBroadcastChannelContext {
|
||||
postMessage: (payload: BroadcastChannelPayload) => void;
|
||||
}
|
||||
|
||||
export const BroadcastChannelContext = createContext<IBroadcastChannelContext>({
|
||||
subscribe: () => () => {},
|
||||
postMessage: () => {},
|
||||
});
|
||||
export const BroadcastChannelContext = createContext<
|
||||
IBroadcastChannelContext | undefined
|
||||
>(undefined);
|
||||
|
||||
export const BroadcastChannelProvider: FC<IBroadcastChannelProps> = ({
|
||||
children,
|
||||
|
@ -57,10 +57,9 @@ export interface IBroadcastChannelContext {
|
||||
postMessage: (payload: BroadcastChannelPayload) => void;
|
||||
}
|
||||
|
||||
export const BroadcastChannelContext = createContext<IBroadcastChannelContext>({
|
||||
subscribe: () => () => {},
|
||||
postMessage: () => {},
|
||||
});
|
||||
export const BroadcastChannelContext = createContext<
|
||||
IBroadcastChannelContext | undefined
|
||||
>(undefined);
|
||||
|
||||
export const BroadcastChannelProvider: FC<IBroadcastChannelProps> = ({
|
||||
children,
|
||||
|
Loading…
Reference in New Issue
Block a user