Comments (4)
I'd like to know this too, please.
from vue-worker.
I would like to know simply how to call a worker from a VueX action. Can somebody provide some guidance?
from vue-worker.
Is it possible to access the vuex store from within a function passed onto a worker ?
This is likely not possible (or not feasible), because Web Workers don't share any data with the main thread. By design, communication between workers is done by passing messages, and such data is copied but never "shared".
While technically it could be possible to set up a bunch of messages so that a worker could ask for data from the main thread, this is likely going to increase the overhead and the complexity of the code, and making it much slower to run and harder to maintain.
from vue-worker.
Not true. Currently indexedb is blocking - and if you want to sync the store with your indexedb instance without freezing the DOM - using workers is the only way to make it truly non blocking. And yes, it is possible. The app will be faster. However I do not know if the module allows it, I have used worker-loader module before.
from vue-worker.
Related Issues (20)
- Failed to construct 'Worker': Maximum worker number has been reached.
- How to send a message from vue-worker like worker.onmessage HOT 3
- How to postMessage continuously? HOT 2
- failed to run fetch in vue-worker HOT 2
- How to create notification with actions ?
- setInterval dosen't work HOT 5
- how to pass an external function to the worker? HOT 6
- how to use vue-worker in Axios HOT 1
- Sorry I've do the issue in the wrong repository -__-'
- Uncaught ReferenceError: xxx is not defined HOT 2
- modules_babel_runtime_corejs2_core_js_object_values__WEBPACK_IMPORTED_MODULE_3___default is not defined
- Uncaught ReferenceError: _ref2 is not defined HOT 2
- Trying to install using npm but stuck with dependency
- How to use methods in worker ?
- How can we use data and methods in vue-worker ? HOT 5
- can support vue3 HOT 1
- Add the possibility to link a node to itself HOT 1
- How use axios in vue worker with vue?
- How delete the worker
- How to access methods inside the worker and make an API call? HOT 1
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 vue-worker.