@shopify/react-effect
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -13,3 +13,2 @@ 'use strict'; | ||
} = {}) { | ||
this.include = void 0; | ||
this.effects = []; | ||
@@ -16,0 +15,0 @@ this.kinds = new Set(); |
import React from 'react'; | ||
import { EffectManager } from './manager'; | ||
import type { EffectManager } from './manager'; | ||
export declare const EffectContext: React.Context<EffectManager | null>; | ||
//# sourceMappingURL=context.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { EffectKind } from './types'; | ||
import type { EffectKind } from './types'; | ||
interface Props { | ||
@@ -3,0 +3,0 @@ kind?: EffectKind; |
@@ -1,3 +0,3 @@ | ||
import { EffectKind } from './types'; | ||
import type { EffectKind } from './types'; | ||
export declare function useServerEffect(perform: () => any, kind?: EffectKind): void; | ||
//# sourceMappingURL=hook.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { EffectKind, Pass } from './types'; | ||
import type { EffectKind, Pass } from './types'; | ||
interface Options { | ||
@@ -3,0 +3,0 @@ include?: symbol[] | boolean; |
import React from 'react'; | ||
import { Pass } from './types'; | ||
import type { Pass } from './types'; | ||
export { Effect } from './Effect'; | ||
@@ -4,0 +4,0 @@ interface Options { |
@@ -1,3 +0,3 @@ | ||
import { ComponentType } from 'react'; | ||
import type { ComponentType } from 'react'; | ||
export declare function restrictToServer<T extends ComponentType<any>>(Component: T): T; | ||
//# sourceMappingURL=utilities.d.ts.map |
@@ -1,1 +0,1 @@ | ||
module.exports = require("./build/cjs/index.js"); | ||
module.exports = require("./build/cjs/index.js"); |
{ | ||
"name": "@shopify/react-effect", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"license": "MIT", | ||
@@ -48,2 +48,5 @@ "description": "A component and set of utilities for performing effects within a universal React app", | ||
}, | ||
"devDependencies": { | ||
"@shopify/jest-dom-mocks": "^4.1.1" | ||
}, | ||
"module": "index.mjs", | ||
@@ -50,0 +53,0 @@ "esnext": "index.esnext", |
@@ -12,3 +12,3 @@ # `@shopify/react-effect` | ||
```bash | ||
$ yarn add @shopify/react-effect | ||
yarn add @shopify/react-effect | ||
``` | ||
@@ -15,0 +15,0 @@ |
@@ -1,1 +0,1 @@ | ||
module.exports = require("./build/cjs/server.js"); | ||
module.exports = require("./build/cjs/server.js"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
30634
440
1