From 54f80079bf1a64532b901e1dc44c157ec55ce4b6 Mon Sep 17 00:00:00 2001 From: Cody Bennett Date: Sat, 13 Apr 2024 15:22:48 -0500 Subject: [PATCH] fix(useLoader): don't dispose of memoized loader (#3231) --- packages/fiber/src/core/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fiber/src/core/hooks.tsx b/packages/fiber/src/core/hooks.tsx index ef06750650..a37090299f 100644 --- a/packages/fiber/src/core/hooks.tsx +++ b/packages/fiber/src/core/hooks.tsx @@ -109,7 +109,7 @@ function loadingFn>( ), ), ), - ).finally(() => (loader as any).dispose?.()) + ) } }