From 6722e66524e9855842685a3317d0cf30c0ce5eac Mon Sep 17 00:00:00 2001 From: Erij Maherzia BEN BRAHIM Date: Sun, 8 Oct 2023 11:52:36 +0100 Subject: [PATCH] Bug Fix: Update exports in package.json and README --- README.md | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f961fb3..4f30334 100644 --- a/README.md +++ b/README.md @@ -719,7 +719,7 @@ return ( This hook allows you to read the value of `transition.state`, every `fetcher.state` in the app, and `revalidator.state`. ```ts -import { useGlobalNavigationState } from "remix-utils/use-global-pending-state"; +import { useGlobalNavigationState } from "remix-utils/use-global-navigation-state"; export function GlobalPendingUI() { let states = useGlobalNavigationState(); @@ -747,7 +747,7 @@ The return value of `useGlobalNavigationState` can be `"idle"`, `"loading"` or ` This hook lets you know if the global navigation, if one of any active fetchers is either loading or submitting, or if the revalidator is running. ```ts -import { useGlobalPendingState } from "remix-utils/use-global-pending-state"; +import { useGlobalPendingState } from "remix-utils/use-global-navigation-state"; export function GlobalPendingUI() { let globalState = useGlobalPendingState(); @@ -770,7 +770,7 @@ The return value of `useGlobalPendingState` is either `"idle"` or `"pending"`. This hook lets you know if the global transition or if one of any active fetchers is submitting. ```ts -import { useGlobalSubmittingState } from "remix-utils/use-global-pending-state"; +import { useGlobalSubmittingState } from "remix-utils/use-global-navigation-state"; export function GlobalPendingUI() { let globalState = useGlobalSubmittingState(); @@ -789,7 +789,7 @@ The return value of `useGlobalSubmittingState` is either `"idle"` or `"submittin This hook lets you know if the global transition, if one of any active fetchers is loading, or if the revalidator is running ```ts -import { useGlobalLoadingState } from "remix-utils/use-global-pending-state"; +import { useGlobalLoadingState } from "remix-utils/use-global-navigation-state"; export function GlobalPendingUI() { let globalState = useGlobalLoadingState(); diff --git a/package.json b/package.json index cee3dfe..92b805b 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "./server-only": "./build/react/server-only.js", "./use-debounce-fetcher": "./build/react/use-debounce-fetcher.js", "./use-delegated-anchors": "./build/react/use-delegated-anchors.js", - "./use-global-pending-state": "./build/react/use-global-pending-state.js", + "./use-global-navigation-state": "./build/react/use-global-navigation-state.js", "./use-hydrated": "./build/react/use-hydrated.js", "./use-should-hydrate": "./build/react/use-should-hydrate.js", "./sse/server": "./build/server/event-stream.js",