Hi there! Does anyone have any experience integrat...
# sdk-react
g
Hi there! Does anyone have any experience integrating Growthbook with Remix/React Router v7? I am specifically working on an installation for Hydrogen (Shopify's wrapper on Remix/RR). While I have some of the basic functionality working, I'm struggling with an implementation that supports both SSR and experiments created through the Visual Editor without flickering.
s
Hey Simon! I don't experience directly with RR in the Shopify context, but it's something I'd like to help you figure out. Do you have a repo or code you can share?
g
Thanks for responding, Ryan! I don't have my implementation available in a shareable repo (I can try to put one together) but to start, here's the basic Hydrogen skeleton repo from Shopify: https://github.com/Shopify/hydrogen/tree/main/templates/skeleton A few things to note: • We are deploying to Shopify's Oxygen runtime, which is actually a wrapper on Cloudflare Workers. This is the default/preferred runtime for Hydrogen-powered headless storefronts. Despite this running in Cloudflare, I don't think I can use the Cloudflare Workers Edge App as I don't have access to the
wrangler.toml
or actual worker config. • Similar to the first bullet, Hydrogen provides a custom
handleRequest
wrapper. With that, there doesn't seem to be an easy way to apply yet another request handler on top of that without doing some reverse-engineering. I've been looking at the
edge-utils
repo and that doesn't seem to help. If it's helpful, I can spin up a fork of the Hydrogen skeleton with some code that mirrors the setup of my company's codebase!