Skip to content

SSR Support? #9

@jgentes

Description

@jgentes

What version of this package are you using?
0.5.1

What operating system, Node.js, and npm version?
Remix: 1.9 https://github.com/remix-run/remix

What happened?
If teaful-devtools is imported into the server entrypoint, it gives This page is not compatible with Teaful DevTools.

If teaful-devtools is imported into the client entrypoint (uses hydrate instead of render), it gives No Teaful store has been found.

import 'teaful-devtools'

import { RemixBrowser } from '@remix-run/react'
import { hydrate } from 'react-dom'

hydrate(<RemixBrowser />, document)

Another way to consider this would be for Next.js - I assume it would have a similar issue?

Thanks, great library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions