#Trying to set up global context and running into errors

1 messages · Page 1 of 1 (latest)

red dagger
#

I'm sure my inability to figure this out is due to being very new at this but I just can't figure out what exactly I am missing here. I get errors you can see at the following Gist...

https://gist.github.com/Dave-Wagner/ab444330743318b1d44e41f161d4fe78

If anyone can take a look and just point me in the right direction I'd highly appreciate it.

cinder brook
#

use createRootRoute or createRootRouteWithContext

const rootRoute = createRootRouteWithContext<GlobalContext>()({
  component: () => (
    <div>
      Root Layout
      <Outlet />
    </div>
  )
})