@shopify/react-effect
Advanced tools
Comparing version 3.2.11 to 3.2.12
{ | ||
"name": "@shopify/react-effect", | ||
"version": "3.2.11", | ||
"version": "3.2.12", | ||
"license": "MIT", | ||
@@ -27,3 +27,2 @@ "description": "A component and set of utilities for performing effects within a universal React app", | ||
"dependencies": { | ||
"@shopify/useful-types": "^2.1.4", | ||
"tslib": "^1.9.3" | ||
@@ -30,0 +29,0 @@ }, |
@@ -87,6 +87,6 @@ # `@shopify/react-effect` | ||
import {extract} from '@shopify/react-effect/server'; | ||
import {createApolloBridge} from '@shopify/react-effect-apollo'; | ||
import {HtmlContext, HtmlManager} from '@shopify/react-html/server'; | ||
async function app(ctx) { | ||
const ApolloBridge = createApolloBridge(); | ||
const htmlManager = new HtmlManager(); | ||
const app = <App />; | ||
@@ -96,3 +96,7 @@ | ||
decorate(element) { | ||
return <ApolloBridge>{element}</ApolloBridge>; | ||
return ( | ||
<HtmlContext.Provider value={htmlManager}> | ||
{element} | ||
</HtmlContext.Provider> | ||
); | ||
}, | ||
@@ -99,0 +103,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26511
3
152
- Removed@shopify/useful-types@^2.1.4
- Removed@shopify/useful-types@2.4.2(transitive)