├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .npmignore ├── README.md ├── example ├── index.html ├── main.jsx └── worker.js ├── package.json ├── src ├── use-workerized-reducer.preact.ts ├── use-workerized-reducer.react.ts └── use-workerized-reducer.ts ├── tests ├── basic │ ├── app.jsx │ ├── index.html │ └── worker.js ├── index.html ├── instant-dispatch │ ├── app.jsx │ ├── index.html │ └── worker.js ├── local-state │ ├── app.jsx │ ├── index.html │ └── worker.js ├── multi-component │ ├── app.jsx │ ├── index.html │ └── worker.js ├── remount │ ├── app.jsx │ ├── index.html │ └── worker.js └── test-utils.js ├── vite.baseconfig.js ├── vite.config.generic.js ├── vite.config.preact.js └── vite.config.react.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/README.md -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/example/index.html -------------------------------------------------------------------------------- /example/main.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/example/main.jsx -------------------------------------------------------------------------------- /example/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/example/worker.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/package.json -------------------------------------------------------------------------------- /src/use-workerized-reducer.preact.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/src/use-workerized-reducer.preact.ts -------------------------------------------------------------------------------- /src/use-workerized-reducer.react.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/src/use-workerized-reducer.react.ts -------------------------------------------------------------------------------- /src/use-workerized-reducer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/src/use-workerized-reducer.ts -------------------------------------------------------------------------------- /tests/basic/app.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/basic/app.jsx -------------------------------------------------------------------------------- /tests/basic/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/basic/index.html -------------------------------------------------------------------------------- /tests/basic/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/basic/worker.js -------------------------------------------------------------------------------- /tests/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/index.html -------------------------------------------------------------------------------- /tests/instant-dispatch/app.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/instant-dispatch/app.jsx -------------------------------------------------------------------------------- /tests/instant-dispatch/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/instant-dispatch/index.html -------------------------------------------------------------------------------- /tests/instant-dispatch/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/instant-dispatch/worker.js -------------------------------------------------------------------------------- /tests/local-state/app.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/local-state/app.jsx -------------------------------------------------------------------------------- /tests/local-state/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/local-state/index.html -------------------------------------------------------------------------------- /tests/local-state/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/local-state/worker.js -------------------------------------------------------------------------------- /tests/multi-component/app.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/multi-component/app.jsx -------------------------------------------------------------------------------- /tests/multi-component/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/multi-component/index.html -------------------------------------------------------------------------------- /tests/multi-component/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/multi-component/worker.js -------------------------------------------------------------------------------- /tests/remount/app.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/remount/app.jsx -------------------------------------------------------------------------------- /tests/remount/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/remount/index.html -------------------------------------------------------------------------------- /tests/remount/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/remount/worker.js -------------------------------------------------------------------------------- /tests/test-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/tests/test-utils.js -------------------------------------------------------------------------------- /vite.baseconfig.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/vite.baseconfig.js -------------------------------------------------------------------------------- /vite.config.generic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/vite.config.generic.js -------------------------------------------------------------------------------- /vite.config.preact.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/vite.config.preact.js -------------------------------------------------------------------------------- /vite.config.react.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/surma/use-workerized-reducer/HEAD/vite.config.react.js --------------------------------------------------------------------------------