📅  最后修改于: 2022-03-11 14:56:29.244000             🧑  作者: Mango
SWR is capable of prefetching data, but it requires additional configurations, such as writing more functions and mutating them to the useEffect() Hook. In contrast, react-query has a prop handler that lets you prefetch data by setting the data ID and source without extra configurations