suspend-react icon indicating copy to clipboard operation
suspend-react copied to clipboard

🚥 Async/await for React components

Results 14 suspend-react issues
Sort by recently updated
recently updated
newest added

Any way to clean resources using this library. I would like to open a socket using suspense but when the Host change, i need to reload a new socket and...

Hi! Very good and wonderful library, I made some changes to suit my project, maybe they're helpful? - Return type is now inferred when passing a bare Promise - `preload`...

The ask here is: - suspend accepts a first parameter that is an `AbortSignal`. - when the component is unmounted - abort the controller associated with the signal. e.g. ```js...

- `three` version: 0.149.0 - `@react-three/fiber` version: 8.10.1 ### Problem description: By using Array as input in `drei/useTexture` or `drei/useGLTF`, the files are not cached correctly. As you can see,...

bug

I have made changes to utilize the built-in Awaited type for handling asynchronous operations.

Hello, I saw via renovate that the npm package has been upgraded to 0.0.10 but the repo shows 0.0.9 with the latest change from 2022. https://app.renovatebot.com/package-diff?name=suspend-react&from=0.0.9&to=0.0.10 Is it not being...

If a key is an empty array, suspend is called in an infinite loop, due to `[] !== []` in js ```typescript // lets say this returns "[]" const invoices...

Project compatibility is listed as all React versions >= 16.6, but has a peerDependency of `"react": ">=17.0"` This complains in React 16.x projects, though the library works fine.

Package.json has `"main": "dist/index.cjs",` but package has `dist/index.cjs.js` which breaks the metro bundler. We can either update the package content or rename the file?

We're generating a lot of cache keys in our app, and would like to clear all keys under a specific "namespace". 1. My first idea was to add the ability...