Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stackflow/react

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackflow/react - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

dist/cjs/future/loader/use.d.ts

2

dist/cjs/future/loader/useLoaderData.d.ts
import type { ActivityLoaderArgs } from "@stackflow/config";
export declare function useLoaderData<T extends (args: ActivityLoaderArgs<any>) => any>(): ReturnType<T>;
export declare function useLoaderData<T extends (args: ActivityLoaderArgs<any>) => any>(): Awaited<ReturnType<T>>;
//# sourceMappingURL=useLoaderData.d.ts.map

@@ -25,5 +25,6 @@ "use strict";

var import_stable = require("../../stable");
var import_use = require("./use");
function useLoaderData() {
var _a;
return (_a = (0, import_stable.useActivity)().context) == null ? void 0 : _a.loaderData;
return (0, import_use.use)((_a = (0, import_stable.useActivity)().context) == null ? void 0 : _a.loaderData);
}
import type { ActivityLoaderArgs } from "@stackflow/config";
export declare function useLoaderData<T extends (args: ActivityLoaderArgs<any>) => any>(): ReturnType<T>;
export declare function useLoaderData<T extends (args: ActivityLoaderArgs<any>) => any>(): Awaited<ReturnType<T>>;
//# sourceMappingURL=useLoaderData.d.ts.map
import { useActivity } from "../../stable";
import { use } from "./use";
function useLoaderData() {
var _a;
return (_a = useActivity().context) == null ? void 0 : _a.loaderData;
return use((_a = useActivity().context) == null ? void 0 : _a.loaderData);
}

@@ -6,0 +7,0 @@ export {

{
"name": "@stackflow/react",
"version": "1.2.1",
"version": "1.2.2",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

import type { ActivityLoaderArgs } from "@stackflow/config";
import { useActivity } from "../../stable";
import { use } from "./use";
export function useLoaderData<
T extends (args: ActivityLoaderArgs<any>) => any,
>(): ReturnType<T> {
return (useActivity().context as any)?.loaderData;
>(): Awaited<ReturnType<T>> {
return use((useActivity().context as any)?.loaderData);
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc