diff --git a/extensions/plugin-google-analytics-4/src/googleAnalyticsPlugin.tsx b/extensions/plugin-google-analytics-4/src/googleAnalyticsPlugin.tsx index c8420ba4e..b3a7766b7 100644 --- a/extensions/plugin-google-analytics-4/src/googleAnalyticsPlugin.tsx +++ b/extensions/plugin-google-analytics-4/src/googleAnalyticsPlugin.tsx @@ -29,7 +29,7 @@ export function googleAnalyticsPlugin< trackingId, userInfo, useTitle = false, -}: GoogleAnalyticsPluginOptions): StackflowReactPlugin { +}: GoogleAnalyticsPluginOptions): StackflowReactPlugin { return () => ({ key: "@daangn/stackflow-google-analytics-plugin", onInit() { diff --git a/extensions/plugin-google-analytics-4/src/index.ts b/extensions/plugin-google-analytics-4/src/index.ts index 01c39135f..f82197229 100644 --- a/extensions/plugin-google-analytics-4/src/index.ts +++ b/extensions/plugin-google-analytics-4/src/index.ts @@ -1,2 +1,2 @@ -export * from "./googleAnalyticsPlugin"; export { useGoogleAnalyticsContext } from "./contexts"; +export * from "./googleAnalyticsPlugin"; diff --git a/extensions/plugin-history-sync/src/historySyncPlugin.tsx b/extensions/plugin-history-sync/src/historySyncPlugin.tsx index 3e8625653..63e8de755 100644 --- a/extensions/plugin-history-sync/src/historySyncPlugin.tsx +++ b/extensions/plugin-history-sync/src/historySyncPlugin.tsx @@ -32,7 +32,7 @@ export function historySyncPlugin< T extends { [activityName: string]: unknown }, >( options: HistorySyncPluginOptions>, -): StackflowReactPlugin { +): StackflowReactPlugin { type K = Extract; const history = diff --git a/extensions/plugin-preload/src/pluginPreload.tsx b/extensions/plugin-preload/src/pluginPreload.tsx index 6e7ce4b27..4f34a2880 100644 --- a/extensions/plugin-preload/src/pluginPreload.tsx +++ b/extensions/plugin-preload/src/pluginPreload.tsx @@ -20,7 +20,7 @@ export type PreloadPluginOptions< export function preloadPlugin( options: PreloadPluginOptions, -): StackflowReactPlugin { +): StackflowReactPlugin { return () => ({ key: "plugin-preload", wrapStack({ stack }) { diff --git a/integrations/react/src/StackflowReactPlugin.ts b/integrations/react/src/StackflowReactPlugin.ts index 165b2a7d7..38f5de277 100644 --- a/integrations/react/src/StackflowReactPlugin.ts +++ b/integrations/react/src/StackflowReactPlugin.ts @@ -1,6 +1,6 @@ import type { Activity, Stack, StackflowPlugin } from "@stackflow/core"; -export type StackflowReactPlugin = () => { +export type StackflowReactPlugin = () => { /** * Determine how to render by using the stack state */ diff --git a/integrations/react/src/stackflow.tsx b/integrations/react/src/stackflow.tsx index 97234aab3..098cd9e6f 100644 --- a/integrations/react/src/stackflow.tsx +++ b/integrations/react/src/stackflow.tsx @@ -30,7 +30,7 @@ function parseActionOptions(options?: { animate?: boolean }) { } const isNullableAnimateOption = options.animate == null; - + if (isNullableAnimateOption) { return { skipActiveState: false }; } @@ -43,7 +43,7 @@ export type StackComponentType = React.FC<{ }>; type StackflowPluginsEntry = - | StackflowReactPlugin + | StackflowReactPlugin | StackflowPluginsEntry[]; export type StackflowOptions = {