@stackflow/react
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -107,3 +107,3 @@ "use strict"; | ||
} | ||
}); | ||
}, [next]); | ||
return isEqual ? previous : next; | ||
@@ -332,3 +332,3 @@ } | ||
} | ||
const isNullableAnimateOption = options.animate === void 0 || options.animate == null; | ||
const isNullableAnimateOption = options.animate == null; | ||
if (isNullableAnimateOption) { | ||
@@ -434,3 +434,3 @@ return { skipActiveState: false }; | ||
} | ||
const isNullableAnimateOption = options.animate === void 0 || options.animate == null; | ||
const isNullableAnimateOption = options.animate == null; | ||
if (isNullableAnimateOption) { | ||
@@ -437,0 +437,0 @@ return { skipActiveState: false }; |
@@ -11,3 +11,3 @@ /// <reference types="react" /> | ||
}>; | ||
declare type StackflowPluginsEntry<T extends BaseActivities> = StackflowReactPlugin<T> | StackflowPluginsEntry<T>[]; | ||
declare type StackflowPluginsEntry<T extends BaseActivities> = StackflowReactPlugin | StackflowPluginsEntry<T>[]; | ||
export declare type StackflowOptions<T extends BaseActivities> = { | ||
@@ -14,0 +14,0 @@ /** |
/// <reference types="react" /> | ||
import type { Activity, Stack, StackflowPlugin } from "@stackflow/core"; | ||
export declare type StackflowReactPlugin<T = never> = () => { | ||
export declare type StackflowReactPlugin = () => { | ||
/** | ||
@@ -5,0 +5,0 @@ * Determine how to render by using the stack state |
{ | ||
"name": "@stackflow/react", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "exports": { | ||
"devDependencies": { | ||
"@stackflow/core": "^1.0.6", | ||
"@stackflow/core": "^1.0.7", | ||
"@stackflow/esbuild-config": "^1.0.0", | ||
@@ -67,3 +67,3 @@ "@stackflow/eslint-config": "^1.0.0", | ||
}, | ||
"gitHead": "0a198648178fa4b7ff790fb7d3201b485f41c212" | ||
"gitHead": "663b913ff1339dc4d1e0c680d1c15a85c5c9e242" | ||
} |
import type { Activity, Stack, StackflowPlugin } from "@stackflow/core"; | ||
export type StackflowReactPlugin<T = never> = () => { | ||
export type StackflowReactPlugin = () => { | ||
/** | ||
@@ -5,0 +5,0 @@ * Determine how to render by using the stack state |
@@ -14,4 +14,4 @@ import { useMemo } from "react"; | ||
const isNullableAnimateOption = | ||
options.animate === undefined || options.animate == null; | ||
const isNullableAnimateOption = options.animate == null; | ||
if (isNullableAnimateOption) { | ||
@@ -18,0 +18,0 @@ return { skipActiveState: false }; |
@@ -13,5 +13,5 @@ import { useEffect, useRef } from "react"; | ||
} | ||
}); | ||
}, [next]); | ||
return isEqual ? previous : next; | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
165183
2491