本页还没有译文
本页 10 段还没译成日本語,下面显示的是英文原文。useFetchers
还没翻译译自英文(reactrouter.com)本页 10 段都还没译
useFetchers
Framework Data
Summary
Returns an array of all in-flight Fetchers. This is useful for components
throughout the app that didn't create the fetchers but want to use their submissions
to participate in optimistic UI.
import { useFetchers } from "react-router";
function SomeComponent() {
const fetchers = useFetchers();
fetchers[0].formData; // FormData
fetchers[0].state; // etc.
// ...
}Signature
function useFetchers(): (Fetcher & {
key: string;
})[]Returns
An array of all in-flight Fetchers, each with a unique key
property.
AI 翻译查看英文原文