Comments (3)
react-hooks-worker/src/index.js
Line 29 in 7efdf4f
The second argument is passed into deps. So, you can control with it.
This also means users have to useMemo
to avoid unintentional invocations.
I'm interested in your use case.
from react-hooks-worker.
Ah of course thanks.
My use case for web-workers in general? Or using this library?
I'm using workers to transform between data types with a really large dataset. I'm finding hooks are a really nice way to use them. I was using workerize beforehand (which is great, but this reduces the component code further).
from react-hooks-worker.
Thanks. Have you tried comlink before?
Also, I updated this library since then. If you have a chance, please give it a try.
Closing this issue. You can continue posting feedback after that, or create a new issue.
from react-hooks-worker.
Related Issues (17)
- Parcel Bundler Support
- Alternative to string-based function HOT 1
- Performance benchmarks HOT 2
- Make examples work in CRA and CodeSandbox
- Worker sends error no matter what. HOT 6
- TypeScript definitions HOT 4
- Error when using async function and exposeWorker HOT 4
- Page crash when the 'input' of useWorker is an Object HOT 2
- Is Transferable Object supported? HOT 7
- Stale data returning when inputs changed HOT 4
- Any way to expose an array of react elements? HOT 1
- How about sharedworkers? HOT 3
- pdf generation in background thread HOT 6
- Doesn't work with Vite HOT 1
- Unable to call external modules inside a workerized function HOT 3
- createWorker with a string is just a glorified eval HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-hooks-worker.