From d74dd3380f9e54bbe20dd5b6c8faeb5ba6011c42 Mon Sep 17 00:00:00 2001 From: Jamie Kyle Date: Mon, 4 May 2020 10:54:42 -0700 Subject: Update unstated-next.tsx --- src/unstated-next.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unstated-next.tsx b/src/unstated-next.tsx index 5a28ba3..f91495d 100644 --- a/src/unstated-next.tsx +++ b/src/unstated-next.tsx @@ -1,5 +1,7 @@ import React from "react" +const EMPTY: unique symbol = Symbol() + export interface ContainerProviderProps { initialState?: State children: React.ReactNode @@ -13,7 +15,6 @@ export interface Container { export function createContainer( useHook: (initialState?: State) => Value, ): Container { - const EMPTY: unique symbol = Symbol() let Context = React.createContext(EMPTY) function Provider(props: ContainerProviderProps) { -- cgit v1.2.3