@pluralsight/react-utils
Advanced tools
Comparing version 0.7.1-next-3e4419 to 0.7.1-next-3eb374
@@ -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-3e4419", | ||
"version": "0.7.1-next-3eb374", | ||
"description": "A set of React custom hooks for Pando.", | ||
@@ -60,3 +60,2 @@ "browserslist": "> 0.25%, not dead", | ||
"license": "Apache 2.0", | ||
"packageManager": "bun@1.0.14", | ||
"scripts": { | ||
@@ -63,0 +62,0 @@ "build": "tsup --experimental-dts", |
@@ -30,7 +30,7 @@ # React utils | ||
This project uses bun so there are no setup commands needed. If you get any errors, you may need to run an initial `bun install` or ensure you are using Node >= 18. | ||
This project uses pnPm so there are no setup commands needed. If you get any errors, you may need to run an initial `pnpm install` or ensure you are using Node >= 18. | ||
## Development | ||
There is no development sandbox for this specific project, but most of the time, we import the hooks into the [Headless Styles sandbox](https://github.com/pluralsight/pando/tree/main/packages/headless-styles/sandbox) which is [just as easy](https://github.com/pluralsight/pando/blob/main/packages/headless-styles/sandbox/src/components/Tabs.jsx#L2-L8). | ||
There is no development sandbox for this specific project, but most of the time, we import the hooks into the [Headless Styles sandbox](https://github.com/ps-dev/pando/tree/main/packages/headless-styles/sandbox) which is [just as easy](https://github.com/ps-dev/pando/blob/main/packages/headless-styles/sandbox/src/components/Tabs.jsx#L2-L8). | ||
@@ -40,3 +40,3 @@ From the **root directory of the project**, run: | ||
```bash | ||
bun run start:sandbox | ||
pnpm run start:sandbox | ||
``` | ||
@@ -49,3 +49,3 @@ | ||
```bash | ||
bun test packages/react-utils/tests | ||
pnpm test packages/react-utils/tests | ||
``` | ||
@@ -55,2 +55,2 @@ | ||
If you plan on contributing to this project, please take time to read our [CONTRIBUTING.md](https://github.com/pluralsight/pando/blob/main/CONTRIBUTING.md). Pull requests that do not adhere to the requirements in this doc will automatically be flagged and closed. | ||
If you plan on contributing to this project, please take time to read our [CONTRIBUTING.md](https://github.com/ps-dev/pando/blob/main/CONTRIBUTING.md). Pull requests that do not adhere to the requirements in this doc will automatically be flagged and closed. |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
247828