cefn / lauf

Monorepo for lauf packages.
MIT License
5 stars 0 forks source link

Async queue, follow instead of generator. Adopt in snake and mixer. #110

Closed cefn closed 3 years ago

cefn commented 3 years ago

This PR introduces followSelector and withSelectorQueue primitives based on async.

These are a replacement for the lauf-runner-primitives implementations which were based on the generator paradigm of lauf-runner.

This PR also migrates nextjs-snake and noredux-async to the new async model, demonstrating how a fairly complex app can be built on @lauf/store without lauf-runner.

As a by-product it creates a createQueue function to parallel createStore and createStorePartition, hence avoiding explicit constructor invocations.

It updates React to 17.0.2 and Next to 11.0.0

Code has been slightly modified to fulfil the strictness of the NextJS eslint task.