@pluralsight/react-utils
Advanced tools
Comparing version 0.7.1-next-2aa956 to 0.7.1-next-2b26e5
@@ -19,5 +19,5 @@ // src/helpers/createResource.ts | ||
switch (status) { | ||
case "pending": | ||
case "error": | ||
throw result; | ||
case "pending": | ||
case "success": | ||
@@ -24,0 +24,0 @@ return result; |
@@ -19,5 +19,5 @@ // src/helpers/createResource.ts | ||
switch (status) { | ||
case "pending": | ||
case "error": | ||
throw result; | ||
case "pending": | ||
case "success": | ||
@@ -24,0 +24,0 @@ return result; |
{ | ||
"name": "@pluralsight/react-utils", | ||
"version": "0.7.1-next-2aa956", | ||
"version": "0.7.1-next-2b26e5", | ||
"description": "A set of React custom hooks for Pando.", | ||
@@ -60,3 +60,3 @@ "browserslist": "> 0.25%, not dead", | ||
"license": "Apache 2.0", | ||
"packageManager": "bun@1.0.14", | ||
"packageManager": "pnpm@8.15.1", | ||
"scripts": { | ||
@@ -63,0 +63,0 @@ "build": "tsup --experimental-dts", |
@@ -24,6 +24,6 @@ import { loadImage, preloadImgResource } from './loaders' | ||
switch (status) { | ||
case 'pending': | ||
case 'error': | ||
throw result | ||
case 'pending': | ||
case 'success': | ||
@@ -30,0 +30,0 @@ return result |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
247874