mobx-state-tree icon indicating copy to clipboard operation
mobx-state-tree copied to clipboard

Offload calculation of views to workers?

Open barbalex opened this issue 3 years ago • 0 comments

Feature request

Is your feature request related to a problem? Please describe.

Calculating views synchronously can become a burden for the ui. Seems to a noob like me it would be great if their calculation could be offloaded to workers.

Describe the solution you'd like

There is a closed issue to generally offload store calculations to workers (https://github.com/mobxjs/mobx-state-tree/issues/1318).

It was closed because though an interesting idea there was no clear way forward yet. I am not adding anything substantial to that situation. So feel free to close this issue too.

But:

  • Maybe things have changed, now that react 18 supports concurrency?
  • Maybe it would help to focus only on views?

Describe alternatives you've considered

This is way out of my league. Above ideas may be way off.

Are you willing to (attempt) a PR?

  • [ ] Yes
  • [x] No

barbalex avatar Jul 07 '22 09:07 barbalex