From d74dd3380f9e54bbe20dd5b6c8faeb5ba6011c42 Mon Sep 17 00:00:00 2001
From: Jamie Kyle <me@thejameskyle.com>
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(-)

(limited to 'src/unstated-next.tsx')

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<State = void> {
 	initialState?: State
 	children: React.ReactNode
@@ -13,7 +15,6 @@ export interface Container<Value, State = void> {
 export function createContainer<Value, State = void>(
 	useHook: (initialState?: State) => Value,
 ): Container<Value, State> {
-	const EMPTY: unique symbol = Symbol()
 	let Context = React.createContext<Value | typeof EMPTY>(EMPTY)
 
 	function Provider(props: ContainerProviderProps<State>) {
-- 
cgit v1.2.3

