{"_id":"react-hook-thunk-reducer","_rev":"10-ff735d740c6e95fc4e76474c37c143ef","name":"react-hook-thunk-reducer","dist-tags":{"latest":"0.3.0","next":"0.1.0-beta.0"},"versions":{"0.0.1":{"name":"react-hook-thunk-reducer","version":"0.0.1","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"webpack","prepublish":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta","test":"jest"},"devDependencies":{"@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","babel-loader":"^8.0.5","eslint":"^5.3.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.16.0","jest":"^24.3.1","react":"^16.8.4","react-dom":"^16.8.4","react-hooks-testing-library":"^0.3.6","standard-version":"^5.0.1","webpack":"^4.29.6","webpack-cli":"^3.2.3"},"peer-dependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"}],"gitHead":"9cac749ea48dcfce13a992fb0456a67bf14c8dd9","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.0.1","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"dist":{"integrity":"sha512-Eqh7eGcBv2KxPEwZQpXLEUn1K3SBLPHSi8xzx8u98QW98IjU/rMiZ6FieCON+IGigvvO7eUD68wAryb+3Ehz4Q==","shasum":"efaad383a58f8add8d0fa1014c1d75229ca5f80f","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.0.1.tgz","fileCount":6,"unpackedSize":32240,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchF8fCRA9TVsSAnZWagAA3GcQAJfYG08/LqCFO7F1mEc8\nOY3NUhSR1hgb/vUqKUkp0gAvrrf2BJzO4MTBwcuBZWMUOn/eyM7IFwq4blO5\n2Uyn1jHKJ+vrUJl4f+MEkO/o2mrAX8hfyV6mbOOZExnW8uEE0PnUfoxXx2mZ\n7fY0ooaoXuo/KKb1Lv1p8em3i1bsZV4hCPICDx6sbkYxfd3FGKcLhoT1Z9ZU\n2eO2bSQyuumtd4FTN4nNrTpRlDBd9XnMLIpQ1JUzuxusyIODmbnm7LEei8/x\nDUB/TiXusjz9TS2v7hEoFURLvJqActtDI4PSdM+sQAY3beJOk+oucWTsVw2g\nHVMfXQSpn9UXarQLtBIW4trrjuQIex2ox4YCmQ4osXaDVzVV7P462NOZAi8g\nTZxRh2tzd/MRWbeK8y+xjmUMZH8HMhSS+3dFJjZydnq8VcmincUfgk3yFsnu\nh3iuTYKFzjyKjIpIsBlguA3LLjEh7rWBlXaCyQwp89VBaLi9fD9PsYvOejqf\nAxEfeoiFHzMEBBeiW7aJZsQnotkZuNkTMYvGSSsIU6gIAd6yeN9f10ylvkO5\nrvGMGXxZJKzA4Ng1JAKVJh/PQDmWgC6vcmSN2d2C7QfqbV425DURALdNUyKT\nRuTM9jdDXVq876NMgv2fBm2cZxegsCTBq3mwRSbINhpFMc4wPCSBRn/jAOlQ\nME0O\r\n=afgM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWnpFW6WOdqOrskD9cnOxARp6/nfcN4AO0a1KXsBHkMAiEAio7FSThp3HKYc3snU/9xklzjN8UBPp1bYdOGHw1dJQc="}]},"maintainers":[{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.0.1_1552178974487_0.5417676378330272"},"_hasShrinkwrap":false},"0.0.2":{"name":"react-hook-thunk-reducer","version":"0.0.2","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"rm -rf dist && webpack","prepare":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta","test":"jest"},"devDependencies":{"@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","babel-loader":"^8.0.5","eslint":"^5.3.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.16.0","jest":"^24.3.1","react":"^16.8.4","react-dom":"^16.8.4","react-hooks-testing-library":"^0.3.6","standard-version":"^5.0.1","webpack":"^4.29.6","webpack-cli":"^3.2.3"},"peer-dependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"}],"gitHead":"32acb54d0deabcb9233c865b4d104a5e319cc283","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.0.2","_npmVersion":"6.1.0","_nodeVersion":"10.5.0","_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"dist":{"integrity":"sha512-C3F8tt7/3eMii9j0/iOnn8dRMdVknFH+AqsTfY1XHHyaAFJJ8LjJlAn12FLRnJy8IWSiMsDJjynIrgEd+0aBWg==","shasum":"41ead7244be3818f84b3ac52bfad9d980f2033ab","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.0.2.tgz","fileCount":6,"unpackedSize":20299,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchHb7CRA9TVsSAnZWagAAzU8QAJsuBoah9gCwyAiuP9ci\nNT2bQCoUVWNZaNCe75sk9MABvFdWbmITtXupczq17zz32vFUTs7y1tYZLpf6\nY+I6MI0emALCnPVBFxJfYzc+meXgnIZqiLSOSZ7AVWXFArjQSHoLsb/+m/2a\neLeV99scTVG9KDb4ac1NSfexBHjPsytLpvuRmAPCY3KyNnvYHnkaaIaQnS56\nTVIzy58zlrkUjQkG9nSwvmzElmViSDgaRLSh8u1TBuzenZSl00JS7AFpRGax\ncEN/CdbR2j8XhXjeWZq2qN1n6joZo8aEPT54uzv0wH5WZ3tK2QIXYOg8WYul\nh+tIIrRWxDrUBKoMe11rJ0WL8NyrkNBoSFzh0ftbMUeRsXMxMD2+kM/PMupy\nxrYvyIwMz7IS+rUxxMOyhaYbO3aIJAlZ442pugp+mALM6a0i8cz9aUO76JJx\najJ7isPOh4AVjOH4HSAn7vOl85/LwnvnYRsXYyQ1r393M2OccQ7WsVLq/V4V\nzM1en75yumuVmM4ZGSNNAiuihEKmT10pAc+hQV2yvF6Fvr76udnla8EI6oaJ\nCsZAhDTgpDnkX+x+VFEC1LnT2NIoLeCFDEekET7mc+DrX03eZ27IlRaEwrX1\nHQXzWI5hXONReD70U4C3v23WhRL2KxJExM/a+tp2Rolde0Q6PHj4fAPenylM\nB3op\r\n=n24I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCq/BFaPbMj1xDIyEBTBUb44IBS/t4wNGT74mjQDUBI1QIhAOeujeH1bSZvVlnNT5UQd2ecQ+EqNR022e+hwXG74yqy"}]},"maintainers":[{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.0.2_1552185083065_0.5091108281851568"},"_hasShrinkwrap":false},"0.0.3":{"name":"react-hook-thunk-reducer","version":"0.0.3","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"rm -rf dist && webpack","prepare":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta","test":"jest"},"dependencies":{"react":"^16.8.4"},"devDependencies":{"@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","babel-loader":"^8.0.5","eslint":"^5.3.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.16.0","jest":"^24.3.1","react-dom":"^16.8.4","react-hooks-testing-library":"^0.3.6","standard-version":"^5.0.1","webpack":"^4.29.6","webpack-cli":"^3.2.3"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"}],"gitHead":"ce7267c962a9fe5a57d37683637f6916dfed9052","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.0.3","_nodeVersion":"11.11.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-dYDD14jy2t2NHxRcldwtNOuaJy9w6CxAUHWyhv97yG/fRMM5BxpXAicnsmMRFMTLmC18ZdOYiBRbVwhsEPJiog==","shasum":"e65167e2fc1c83cf499cf69eee9c204a68d7d226","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.0.3.tgz","fileCount":6,"unpackedSize":203130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchV59CRA9TVsSAnZWagAASFUQAJIEESAsuols7JGfMHSk\nAvMoXzLCPX5mqF5w1IgJhOfNC+dYzU+pCG7HbDMfWMGvAv787LpkAqbrzYQW\nMRA48TWimamFEorBznJWBYmeu8uS+XG5BIqeYdJlzkSzxRhkZ82K1yELSpyc\ncN6sW/nMlyKDe4hOvXqMd319haWrElcEa0ZmbFAinKUeJ5K9gNEmhXT3B3m/\nKU3l4hJifA/xfUJJgPZxhTQ4Vp1XobG8C3jmZz45JVyMHipc5sZlI4L5Wh8g\n6cK0h4LYKI/1042oFuj5TSFD4b0soLHdWdUxgYZQ+VsFrRK+F8T0QYAdCmpq\nZCieLbMbbqPKuSW7UqJq5aTBM2Y0FtpWvUcVVKRrp6sKAm5K0/xzfn7U9YTK\nzr+izDSgGiHygnKfqRupe0lY0A1L2ZZ80hmh4g/5m7nEgSjDwerqOkKpvPtO\ncTSj/fEg6qnHTWsYe1OhGMf1xIPU1UV9LL5ra6U+4jEsm3Klq34FciEt2pCh\nW4QpwKH/gvzuktubkwSTqpknwCrA/Zvci9NusSwjFKlIiCSDklIzOrk1d0IB\nxkJhyK5kzwY2HzdAbnfo+SSpggGcImzNZKFImFID70puTdV2FisKOTASVkwU\n/LXJ+cQOhPXBPCA5YV1PbRP/SuMZYEyuaVZMWXP1/kJOK4WbNRF8pxDTL5ro\nc3gZ\r\n=VNQ8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcEyRXwH6kzD596/KzasH2Dwb3wQNRsveA8LtaJUDRFAiEAvhvaPDFsbwf9J+kaQpD0CsEfcmqm8fh9epn3aptT1ws="}]},"maintainers":[{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.0.3_1552244348816_0.40863502560543963"},"_hasShrinkwrap":false},"0.1.0-beta.0":{"name":"react-hook-thunk-reducer","version":"0.1.0-beta.0","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","types":"./types/thunk-reducer.d.ts","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"https://www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"rm -rf dist && webpack","prepare":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta","test":"jest test"},"devDependencies":{"@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","babel-loader":"^8.0.5","eslint":"^5.3.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.16.0","jest":"^24.3.1","react":"^16.8.4","react-dom":"^16.8.4","react-hooks-testing-library":"^0.3.6","standard-version":"^5.0.1","webpack":"^4.29.6","webpack-cli":"^3.2.3"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"}],"gitHead":"4f304e409f94239e99d214486aa39dad2ac5c868","readme":"# react-hook-thunk-reducer\n\n> Akin to [redux-thunk](https://www.npmjs.com/package/redux-thunk), `useThunkReducer()` augments React's [`useReducer()`](https://reactjs.org/docs/hooks-reference.html#usereducer) hook so that the action dispatcher supports [thunks](https://en.wikipedia.org/wiki/Thunk). Now, you can write action creators that return a function rather than an action!\n>\n> Requires React v16.8 and above.\n\n[![Npm version](https://img.shields.io/npm/v/react-hook-thunk-reducer.svg)](https://npmjs.org/package/react-hook-thunk-reducer)\n[![Travis](https://img.shields.io/travis/nathanbuchar/react-hook-thunk-reducer/master.svg)](https://travis-ci.org/nathanbuchar/react-hook-thunk-reducer?branch=master)\n[![David](https://img.shields.io/david/nathanbuchar/react-hook-thunk-reducer.svg)](https://david-dm.org/nathanbuchar/react-hook-thunk-reducer)\n\n<br/>\n\n## Install\n\n```bash\nnpm install react-hook-thunk-reducer\n```\n\nThen just import it and use it like you would `React.useReducer()`.\n\n```js\nimport useThunkReducer from 'react-hook-thunk-reducer';\n\nfunction Component({ initialState }) {\n  const [state, dispatch] = useThunkReducer(reducer, initialState);\n  // ...\n}\n```\n\n## Usage\n\nCreate your actions just like you would in Redux. Just like [redux-thunk](https://www.npmjs.com/package/redux-thunk), if an action returns a function, it's treated as a [thunk](https://en.wikipedia.org/wiki/Thunk) and has access to the current state.\n\n```js\nfunction increment() {\n  return {\n    type: 'increment'\n  };\n}\n\nfunction incrementIfOdd() {\n  return (dispatch, getState) => {\n    const { count } = getState();\n\n    if (count % 2 !== 0) {\n      dispatch(increment());\n    }\n  };\n}\n```\n\nCreate your functional component and call the `useThunkReducer()` hook as if it were `React.useReducer()`;\n\n```js\nimport useThunkReducer from 'react-hook-thunk-reducer';\n\n// ...\n\nfunction reducer(state, action) {\n  switch (action.type) {\n    case 'increment':\n      return { count: state.count + 1 };\n    default:\n      throw new Error();\n  }\n}\n\nfunction Counter({ initialState }) {\n  const [state, dispatch] = useThunkReducer(reducer, initialState);\n\n  return (\n    <>\n      Count: {state.count}\n      <button onClick={onButtonPress}>+</button>\n    </>\n  );\n}\n```\n\nDispatch your actions using the augmented `dispatch` function.\n\n```js\nconst onButtonPress = useCallback(() => {\n  dispatch(incrementIfOdd());\n});\n```\n\nThe value of the inner function will be returned when dispatching thunks.\n\n```js\nfunction incrementAndReturnCount() {\n  return (dispatch, getState) => {\n    dispatch(increment());\n\n    return getState().count;\n  }\n}\n\nconst newCount = dispatch(incrementAndReturnCount());\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.1.0-beta.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-rddM4TM5iMec8NVrrNUBLmu3Ze8r0CgluUXn6dzM07EHOpzCgIOSe4nUVNNmL9Nu50IHR1BfnFLqOdHFEeohxA==","shasum":"d04d82f6bc1af5645c57df1e4ecb0f80f13533aa","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.1.0-beta.0.tgz","fileCount":7,"unpackedSize":23451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAaOYCRA9TVsSAnZWagAAvAEP/3Yp3H1KznBNNgnc4zbJ\nvh7ztUdBnNDfMWEgISC59kiY8Vf3G7TD4XrH0qFo9Dg5l4++eB45WL3ehHLQ\nT7LYNhODRzRc6C5ZlvVmQKKz9BluW5gt7akXbZvMngglZPiBtypBYYkcSQSY\ntwbzhPXSJEKfg/4i7Iy9l9Z5jspgCDAnllz78NO91GrZDXWmS8rQ7jCjx9H+\nIKdlT/1Q3S5pU3Bk02OD1iD8OrT4ww4RKtqGVgORpLXZgAX23sDbn0qsRv5F\n3L2wvohcQjVlJOa7zSVnUSj16oD+ja141Lj76SjUJw6OZ+JxJUti5FZ6NY9W\nEpaGS34PHDhC22KTEeiFq4Sf51Vq7fTS/tYh2wfVFQ2HrveYNeUBs+V3FErC\noq0sow0hZ2o4tpVAk8OTxp6CaLQbfKHYO7w/WKhfFiz4YKS+BsKwwdBTWFTM\ncOVCN0utQESfc1YQw7DxwPzlGNV7qoYlp7uRk+PASmNebneu5t5AtxoqGnxQ\nS6dGeZ7pb49S9vR6MV/emY3VcfW/0ls5Ljr+xgwjFLE2tvHObLvbFB4WM1VL\nzKLjGsGUnv7tZ9ZUmdZ+xr3jDlG/Ji58OsSI+R77b9lSURuIuuK/MUmJFpRN\n6wiD3jaO040oc2Oz5u8P3cGR3sgq9dXqI8z42laKguxzX3XR6vLPrn3Fcv1i\nvSom\r\n=5d73\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHcH2cElHFn2OsX2URYTAqbsLDPBst+iRE0Jvw7+8dZBAiEA4r2ZM2KNKvfJ+faSxE+DDgDeooSD0k4/GMWAdkH6E5w="}]},"maintainers":[{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.1.0-beta.0_1560388503835_0.19191011198453034"},"_hasShrinkwrap":false},"0.1.0":{"name":"react-hook-thunk-reducer","version":"0.1.0","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","types":"./types/thunk-reducer.d.ts","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"https://www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"rm -rf dist && webpack","prepare":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta --skip.changelog","test":"jest test"},"devDependencies":{"@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","@testing-library/react":"^8.0.1","babel-loader":"^8.0.5","eslint":"^5.3.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.16.0","jest":"^24.3.1","react":"^16.8.4","react-dom":"^16.8.4","react-hooks-testing-library":"^0.5.1","react-test-renderer":"^16.8.6","standard-version":"^5.0.2","webpack":"^4.29.6","webpack-cli":"^3.2.3"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"}],"gitHead":"b3a4617d3ad702634e56163ae43d661e2e4f7b32","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.1.0","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-XljMV3WoCHw15oWD7bquh13/Gv5WW/oA2uD9ROKZJRRHPRb6H4HFshpI179nup7dE56eHJw8rrYvPeD+bQxdZQ==","shasum":"5676c03a8c2c28eb13681a023a7759fd5cba8428","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.1.0.tgz","fileCount":7,"unpackedSize":23525,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCtTqCRA9TVsSAnZWagAA5sQP/2xIxp4M4dmBK57jQLQk\n/CF5ivnhxuWGuktBO4/h+RS23lhBnj+H6UqZ9a7/qCH3O8MnbeBIQiza5D5t\nTSLhvNaSSr5mtB0jdX2MwBoGi3h86aJxEaw/2wGEwD0rHvEyzu171x2EwW44\nIXqG2lzvo258suneY9ARw3gNIRgjdtL2oiD+HgnBqPI+ooEciKQYlhriSFH5\nQCfXuCdlna2jbt370Xx9zmo1MdSvH9P+K3relKFxpZ855ip+gZzZRpTgKYGm\n1NwMX+al9hXMKeB7+3ukhYy3yB7ZCQfTrtmJ5ePmMNWHeSQwxexBkM7LaJyI\nRvkKAz6TLpmyFyi7viBf+CQ7zS8QpJtl+1vAgcd2GtSWAPxmQYVNW9mHrUrU\narXFSc4Uv0xP4IXkzon1lbFqrXsB4XEcySEwNiS8u/UN6ZiSAGjY2B0/PwRJ\ne3VrbJgUwXmLzaUoTS67ZvJ+Ji/FyxjEg9Nz7ZNG6MSlSviQ2fsh1KqpuVuy\n55uNtj4lG4aRGo4lD3W95N1HxU4FbIjYykNae35xQJaKVzoam9uDPRmAsFyU\naWwUgsMtPMyIaMOiZ00U+UCE8xPMQ86BCZJFEbRS9S8qrkTnfwMvF3N9v/ht\n8Pp3T8pBhCI5mqXFWNHeGjfxMVWU7KFSWvmqNEXussBCGnYifr8GwWNIMv8q\n+8cL\r\n=R9WK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7YhP2fihY6W3ahENzdbDYiy0++TlgzMyKZCjxnTB0RAIhAKwYKD7DafB24mFnkzbqZ5i09xNNTQ0mk/d9gCsmZkwZ"}]},"maintainers":[{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.1.0_1560990953451_0.5965013771643854"},"_hasShrinkwrap":false},"0.1.1":{"name":"react-hook-thunk-reducer","version":"0.1.1","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","types":"./types/thunk-reducer.d.ts","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"https://www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"rm -rf dist && webpack","prepare":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta --skip.changelog","test":"jest test"},"devDependencies":{"@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","@testing-library/react":"^8.0.1","babel-loader":"^8.0.5","eslint":"^5.3.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.16.0","jest":"^24.3.1","react":"^16.8.4","react-dom":"^16.8.4","react-hooks-testing-library":"^0.5.1","react-test-renderer":"^16.8.6","standard-version":"^5.0.2","webpack":"^4.29.6","webpack-cli":"^3.2.3"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"}],"gitHead":"f6bfa478497c2356fa6c3de2d4562ae601a8b319","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.1.1","_nodeVersion":"12.5.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-K4hzUsdLEScPpV27THgoDeQNYnvcyiNc1DaB1d3ss238v+44+UzSxBrpquXdVdiPW6YbfJ7MpCHcljQWoGH1/w==","shasum":"de8eea334c124a68550d97c81ff76574689719d3","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.1.1.tgz","fileCount":7,"unpackedSize":23783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGYqTCRA9TVsSAnZWagAAo+EP/1rldsmiLf2cC0gsJWYt\noPVnW6AO5uXuW2aAX9CovMvoser87I7DowsTweJ0MoBERRxYQF/ZqOwMvWVr\nPpcXCBifU0lZheTdtEtEcO8wUlfl0lz6WR11ZHEHBkZd5scd4mXdX2UM3YML\nx/f15owS1R454Cd2YyhFjB66pfFMkAC3nTOGvr75+TbDxXxjIGU4G1LR5RUG\nRBCaGiSeJynmJcgZN1y/ngKsUgHtJuR3ublVC8bQ9Pg080AubPRDHKVJAMoI\nATvuoryCbKG4Og1nobtuu+XrheP7KOo0YOgvZ452/UDK4drI7MPWKV1PIWHT\n+CpFZ+F8MwtDgnk4jhfoyN9kkhSjzYtvMKNBShMGf/q0AbVmJnZosLhiP4gf\n8iNV1Fd50tmOLkgpgWqULr5O5HxI02xv5KitppI4OETFpanWbQgC7zHUDOCW\ni5NPyBBjsWXngktDXaQLnwfg2cuHSulYiz3qyIIeXrEYdiEv/LU0X+WKFPca\nFn03z83EsiDBBMbz2rwRkAH1S1/OSIy18oef5UiBs4iO+2hDCVFHhuF3yeTK\nzF0syMZiLrIOrdX5t7/HvbvOxhrOUrabdMyYupkOI5I+GVJtnaWyJV+LE9zN\nf3wNWlfT1vVOoBoi4eWpcFTiLpix2m0YiUJHoJbEylh0QJmd5EjgHGozD7ri\nSfSb\r\n=7syR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICiDBo8XV2wx7X+nXyhXPEVe1G3Qt97VxN4PBd6dp6VVAiEAhO6SVrVmO/nGtZ7UlsoYpf42Ti9gkb393cx/TSar9K4="}]},"maintainers":[{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.1.1_1561954962517_0.915725732903528"},"_hasShrinkwrap":false},"0.2.0":{"name":"react-hook-thunk-reducer","version":"0.2.0","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","types":"./types/thunk-reducer.d.ts","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"https://www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"rm -rf dist && webpack","prepare":"npm run build","pretest":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta --skip.changelog","test":"jest test"},"devDependencies":{"@babel/core":"^7.7.2","@babel/preset-env":"^7.7.1","@testing-library/react":"^9.3.2","@testing-library/react-hooks":"^3.2.1","babel-loader":"^8.0.5","eslint":"^6.6.0","eslint-config-airbnb-base":"^14.0.0","eslint-plugin-import":"^2.18.2","jest":"^24.9.0","react":"^16.11.0","react-dom":"^16.11.0","react-test-renderer":"^16.11.0","standard-version":"^7.0.0","webpack":"^4.41.2","webpack-cli":"^3.3.10"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"}],"gitHead":"f1529689982e2df94878728243f65374e87eadb3","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.2.0","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-tY7VDEkNhEEC/051a0ktXijc1bpYvPUM9KvTel5mQbAmJQ9+cAXc69p0I3J3C+asoIzNdyzAfhHWqskbY68rxA==","shasum":"4e933d92542110a721d4cc79d4bb45dfe07520fb","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.2.0.tgz","fileCount":7,"unpackedSize":24973,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxErMCRA9TVsSAnZWagAA23oP/0YGxHeTA377DOJKZJcQ\n+EPkjr/ObBtYV5srsH7+F+OxMKYGOTT+tBFZmK50JZCAUlukxIinjVbgWkNj\njMcVSJ66Rd/tiSz/TWAhTS1EcTXzgnp0ZQIT3kyB9CTMZ0LSmI68p7sPvF+L\neaDeyuCwtciU/TNp7ObbHIiAj6advf3oWPUfXHE8fhm+kqxg4MEm/aVk7kyM\n6Pn0g4XlXrgNrE4a1szyxinK6X1UU6ttJZFxMd/Q0mkUMASufhBJvscE/Txo\n6+9SY0ocgZ3AV38pER+cg7wXv4dV7yO7Zk1Taye3NXqCjI3Mz9WxX0cp/uY5\nJZakxpGuR3vGMffqMZoRcg1lFS9i2R2eEaaF33KUW7qIVZmRtfd5qNU2D+Sx\n17WyIGAtYe3OwY3ihXP6ZGlN3PSCXXWQu3d2rg9NMvUWkfk5j4XCTImhEGO9\nF7k6Ay42zw2i64stt925j8QUWUoAdtBPU5tNubeXP/kwBi2rmA4/hXS5LxAU\n2iXxY3SGTRfOyYWpIjsA2+KkY/0x/JzeXWEQWG7nj1MmE4qoGKUj9kJ9sG/f\n1o+w7r+480c0+6NOLicBbKSeA4b575QA7kfUOyy3PHWvjkM00xpVoMFMffjo\nCA3kGzlmJymGLGOfvDkvQw9zfcd1YNYqPiWmXGa90lKvdwwO2cHLBUFR/6Bd\n8NC3\r\n=+Id1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMzzMtJKvliU3AN7zP7rYbnGWDWef60Zb7dPB/uf5GLwIhAN74VyAJ5j6Dq+l58h/Ed+1EFd3x6jIL9zaIaK/f9hEI"}]},"maintainers":[{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.2.0_1573145291893_0.9065355786393017"},"_hasShrinkwrap":false},"0.2.1":{"name":"react-hook-thunk-reducer","version":"0.2.1","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","types":"./types/thunk-reducer.d.ts","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"https://www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"rm -rf dist && webpack","prepare":"npm run build","pretest":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta --skip.changelog","test":"jest test"},"devDependencies":{"@babel/core":"^7.7.2","@babel/preset-env":"^7.7.1","@testing-library/react":"^9.3.2","@testing-library/react-hooks":"^3.2.1","babel-loader":"^8.0.5","eslint":"^6.6.0","eslint-config-airbnb-base":"^14.0.0","eslint-plugin-import":"^2.18.2","jest":"^24.9.0","react":"^16.11.0","react-dom":"^16.11.0","react-test-renderer":"^16.11.0","standard-version":"^7.0.0","webpack":"^4.41.2","webpack-cli":"^3.3.10"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"},{"name":"Angus Houston","email":"angus.houston@outlook.com.au"}],"gitHead":"56ef89b45d021fc27f2e1bcc343197ec78053441","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.2.1","_nodeVersion":"13.1.0","_npmVersion":"6.12.1","dist":{"integrity":"sha512-OejdEFKfJpXCAYdmi3b1H2fS2OM+wTWnptFh5GB0Mr8MXDqEVZ33SvwWKT4eTQqI0XthRwNoH1M+YuPxwo7XIA==","shasum":"49c9aa4db9d425853e00aa2dbeeca0242f838141","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.2.1.tgz","fileCount":7,"unpackedSize":25650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdxEyPCRA9TVsSAnZWagAAJyIQAKHlQJ3SmF7iKmYHi3hC\n33QEK0H1RyTcj///22rs2mGYa/wGw/hJTt8u4XN7QyySStFeDee0GBErJDfr\nYQ9e4TySZEY3SYjUKpqXNnKspDOxwG8CMGdJvCTjnduttLDcLEkBsJP1wNSU\n+dfDOZbs9niBaicB7RYZYLseTIXU1SXkkpwy1dLmpl1ZQph7B8SEMWhxhskn\nFY/NnuOUGlBTl+XDB5+y8vmgX8pkfYMfiZyjWYz/4yf7k7zomKEM5nX9bEN0\nBpn6XxeHYjJI3WWzNChlynImihlzGRL/qNIf5OaHixfIKH0bzFmWAYpBBE4K\njmVk1nFQVMG+DTt0usH25cVL87spcSXI12iUp4Qckz0h6NB6M6luDE4B/lcD\ncQH2JsFNKIdV5aVtZ5xtFlIwo6BUfwm43PmseBL35oxFeA2x+vLNp9h0vrQ0\naSc4/wsI2PC6gJm+xB+WSc+BSvkeuguHWHHPdS7u3kdue9S8/AhkfuP86bV/\nnmlGYOy+aYr0wvDUVChYkpeYom5LND5BMp8Gf8vYvJ+SsVBw2Mp0z6Xgqjxz\nHVHtQfGiTNwp6LjHnJLR6/i478z8f1/2rlO6+gtop7jLxm1XKelGPzcFl5AA\nBHl/1yCS2ZyQtPR74PMd1Fi5UNMJGKgwmcV4fy8CnRGbtzhts2/23OYlkV+/\n315m\r\n=r0+7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEK+6t8BMftRC57qjqKi3T5KRX/VCrrP2GvYTwhDMZYuAiEA0juPl3dZRogR0Q3F6TE7m0aiyW/JYLYwGVmJTKY/MPY="}]},"maintainers":[{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.2.1_1573145742799_0.7411918140398897"},"_hasShrinkwrap":false},"0.2.4":{"name":"react-hook-thunk-reducer","version":"0.2.4","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","types":"./types/thunk-reducer.d.ts","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"https://www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"rm -rf dist && webpack","prepare":"npm run build","pretest":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta --skip.changelog","test":"jest test"},"devDependencies":{"@babel/core":"^7.7.2","@babel/preset-env":"^7.7.1","@testing-library/react":"^9.3.2","@testing-library/react-hooks":"^3.2.1","babel-loader":"^8.0.5","eslint":"^6.6.0","eslint-config-airbnb-base":"^14.0.0","eslint-plugin-import":"^2.18.2","jest":"^24.9.0","react":"^16.11.0","react-dom":"^16.11.0","react-test-renderer":"^16.11.0","standard-version":"^7.0.0","webpack":"^4.41.2","webpack-cli":"^3.3.10"},"peerDependencies":{"react":"^16.8.0","react-dom":"^16.8.0"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"},{"name":"Angus Houston","email":"angus.houston@outlook.com.au"}],"gitHead":"ea5d0d5600adbb8046ffdd221a4d7526e00b6d3d","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.2.4","_nodeVersion":"13.7.0","_npmVersion":"6.13.6","dist":{"integrity":"sha512-cuK5GkdhDjSaBrDZMP17bp8YVClrxHf8U39j1OOjCQksi6LgN+M5cRuNfGsEqqn1lvkhl48p2O5X35+BIrf47Q==","shasum":"b10bc27157836750e5cbf513bcaf0be02412406c","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.2.4.tgz","fileCount":7,"unpackedSize":26297,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeLfHgCRA9TVsSAnZWagAAJCkP/0Eo5+YJgxQhcCm0Beq8\nVPOnhg895Xb5djdFJ/9Xup1KiIYtZK6PZcx+dJXCIPctHDCPrdYu5Yetxivw\nGP1LaWNso9E2FLFCLxRi4VdaMoJwZw2NbgOHNnz0I7gaWjXC5nDEAeAloZQp\nbrAbMGkH2c5B6U4MWLWa6sFYGffsSqe72F/DNcGFgg+q40V9h/TegboicGkn\n4gEfgoKSravCyoGcU4BZ6JEzneBWnB8mJ9P9q3XmYKrwX0K7Zbry2LY7ppBi\nuY4hZANnLZshBCsdQ+qT9j5S5ZJGfcv19xrDjJb3hfQ6tqmvZnKLBkZvnQNj\n3zDyqZm5iGo/vFwzYyWMx5erpn47u5fY2oyzMwIfz/apl2Tv4npMoYhLN9IE\nGdYa0WtQmVEVxjh/YR+4+cHVNwVmm5mEtqF1wxHbqxH3mYt2OGm4RyeqvnVd\nrH9icDkv33y10yHu3SWCDBVexbEA/5HYnWVbItEZxyrIgUANtKMBN13TYp9H\nlTYT8NC+I0j5oUwK4LeY0QqKmiGBKtYAys+jyDaPOk+Mcw9mXNUtFCHl3prQ\nEScD2ErjCYe5ZQLpU9M27o4L3bkwy5hvmf/0EuWX+ZRgrt/xaKo666z1lN8c\n1BJotbvbuSUvU9elt1mkcZAgThgMTK6LjQ6lkk1qDlGDVKBItXW84dn8Mhty\nDWow\r\n=RZGG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzcqqmV0PeGn605Mhegg8euvbPrn+J3r4eIm9e/oHqigIgdRX1Yg9VTZ5uVOwRXg/PQ/VHteaJlsxrwDBfwZnLyjc="}]},"maintainers":[{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.2.4_1580069343516_0.5252901004394956"},"_hasShrinkwrap":false},"0.3.0":{"name":"react-hook-thunk-reducer","version":"0.3.0","description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","main":"./dist/thunk-reducer.js","types":"./types/thunk-reducer.d.ts","license":"MIT","author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"https://www.nathanbuchar.com"},"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"keywords":["react","reactjs","thunk","reducer","hook","redux"],"scripts":{"build":"rm -rf dist && webpack","prepare":"npm run build","pretest":"npm run build","release":"standard-version","release:beta":"standard-version --prerelease beta --skip.changelog","test":"jest test"},"devDependencies":{"@babel/core":"^7.7.2","@babel/preset-env":"^7.7.1","@testing-library/react":"^9.3.2","@testing-library/react-hooks":"^3.2.1","babel-loader":"^8.0.5","eslint":"^6.6.0","eslint-config-airbnb-base":"^14.0.0","eslint-plugin-import":"^2.18.2","jest":"^24.9.0","react":"^16.11.0","react-dom":"^16.11.0","react-test-renderer":"^16.11.0","standard-version":"^7.0.0","webpack":"^4.41.2","webpack-cli":"^3.3.10"},"peerDependencies":{"react":">=16.8.0","react-dom":">=16.8.0"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"},{"name":"Angus Houston","email":"angus.houston@outlook.com.au"}],"gitHead":"88eca6a4915dc6c83d7962bec12e7f6bb15f9e89","bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","_id":"react-hook-thunk-reducer@0.3.0","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-iOFJW0lHIc7Xsa8nyvbLpaVKPNfAZpriFOpe7HUX+phGH+/1Ci5TA5psfy9LYeQkWgVhmAHXIBOfian7SglMgA==","shasum":"5f62f9517150a56cb6711a8949d1b3ed00261d21","tarball":"https://registry.npmjs.org/react-hook-thunk-reducer/-/react-hook-thunk-reducer-0.3.0.tgz","fileCount":6,"unpackedSize":24247,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCH3GVnYMBEft21GYtlWNekvHW6pfmtYbUbl/q8zauBhYCICrJA/6uFteys8U0saw1vK5iLUtcbivhUayN9WKEQTP0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimka7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDohAAg75ZbCxQhpW/XhulyAv8zGvDeUUxxYF+q+N2E10UVi++A2+6\r\ncPjKtKxPxkyaufgnuqYdK1QOvuP9bK/uTBePcSIenGoQJibJesxItP6mtmEI\r\nx0WH0z83v+Xw8WycamFSfC+qiAsqe53BMcvQRtt6GSTfkHEYJrPLaJuusVHg\r\niPuZhBvJ+7F+Pmin2bM8Q3p7WPe5aE4wjdNTg6GZLayfPOMX68V8ofW23tLV\r\nlO1aRc+dFFHBc0z9SskwUwt4NdXFZInP9RrTdNAph8XP7DFYEQjOIKbcC3Qk\r\nDlkWzxpqQngW0NRK9U7HX780oIqMStErBXHEK8A72OLRFSn5qCumNMs0vpsy\r\ndJW/rsRSkQXM78d3IInTjPLpbB+HyDAol9ep4B+uzhEhzI+F+sRqE7yt7Qf+\r\nnfIYHSkIjJtXK4onJQxuyDQi+mBtNBT/r+aAcmi0z4Xe6QFFto0tlz0Qco6n\r\nC9n6AG39JAXqrVMB+k0rjpYPSlhKbv/pppLDsj6orbKyDPTX0J7/f17+EwLr\r\nsayP9NngjWll7iNH2IoQCTVvBGqA/ReSu2KW5rOZNooR/UuBUuB108Ce5rkR\r\ncEV0stm8qRmUsCbNDTJmWsU5o7Dhvk3UKfPwX2iiTgCGLHJouz2h9KZrwzR7\r\nHYcuqPjRlPDwlBNtn/1nyCkjZJoIZb586JA=\r\n=YSVX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nathanbuchar","email":"hello@nathanbuchar.com"},"directories":{},"maintainers":[{"name":"asaayers","email":"Asa@AsaAyers.com"},{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-hook-thunk-reducer_0.3.0_1654277819016_0.7826452850598087"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-10T00:49:34.486Z","0.0.1":"2019-03-10T00:49:34.592Z","modified":"2022-06-03T17:36:59.304Z","0.0.2":"2019-03-10T02:31:23.248Z","0.0.3":"2019-03-10T18:59:08.998Z","0.1.0-beta.0":"2019-06-13T01:15:04.035Z","0.1.0":"2019-06-20T00:35:53.871Z","0.1.1":"2019-07-01T04:22:42.723Z","0.2.0":"2019-11-07T16:48:12.073Z","0.2.1":"2019-11-07T16:55:42.980Z","0.2.4":"2020-01-26T20:09:03.653Z","0.3.0":"2022-06-03T17:36:59.197Z"},"maintainers":[{"name":"asaayers","email":"Asa@AsaAyers.com"},{"name":"nathanbuchar","email":"hello@nathanbuchar.com"}],"description":"Extends React's useReducer() hook so that the dispatcher supports thunks.","homepage":"https://github.com/nathanbuchar/react-hook-thunk-reducer#readme","keywords":["react","reactjs","thunk","reducer","hook","redux"],"repository":{"type":"git","url":"git+https://github.com/nathanbuchar/react-hook-thunk-reducer.git"},"contributors":[{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"www.nathanbuchar.com"},{"name":"Asa Ayers","email":"asa@asaayers.com","url":"www.asaayers.com"},{"name":"Angus Houston","email":"angus.houston@outlook.com.au"}],"author":{"name":"Nathan Buchar","email":"hello@nathanbuchar.com","url":"https://www.nathanbuchar.com"},"bugs":{"url":"https://github.com/nathanbuchar/react-hook-thunk-reducer/issues"},"license":"MIT","readme":"# react-hook-thunk-reducer\n\n> Akin to [redux-thunk](https://www.npmjs.com/package/redux-thunk), `useThunkReducer()` augments React's [`useReducer()`](https://reactjs.org/docs/hooks-reference.html#usereducer) hook so that the action dispatcher supports [thunks](https://en.wikipedia.org/wiki/Thunk). Now, you can write action creators that return a function rather than an action!\n>\n> Requires React v16.8 and above.\n\n[![Npm version](https://img.shields.io/npm/v/react-hook-thunk-reducer.svg)](https://npmjs.org/package/react-hook-thunk-reducer)\n[![Travis](https://img.shields.io/travis/nathanbuchar/react-hook-thunk-reducer/master.svg)](https://travis-ci.org/nathanbuchar/react-hook-thunk-reducer?branch=master)\n[![David](https://img.shields.io/david/nathanbuchar/react-hook-thunk-reducer.svg)](https://david-dm.org/nathanbuchar/react-hook-thunk-reducer)\n\n<br/>\n\n## Install\n\n```bash\nnpm install react-hook-thunk-reducer\n```\n\nThen just import it and use it like you would `React.useReducer()`.\n\n```js\nimport { useThunkReducer } from 'react-hook-thunk-reducer';\n\nfunction Component({ initialState }) {\n  const [state, dispatch] = useThunkReducer(reducer, initialState);\n\n  // ...\n}\n```\n\n## Usage\n\nCreate your actions just like you would in Redux. Similar to [redux-thunk](https://www.npmjs.com/package/redux-thunk), if an action returns a function, it's treated as a [thunk](https://en.wikipedia.org/wiki/Thunk) and has access to the current state.\n\n```js\nfunction increment() {\n  return {\n    type: 'increment'\n  };\n}\n\nfunction incrementIfOdd() {\n  return (dispatch, getState) => {\n    const { count } = getState();\n\n    if (count % 2 !== 0) {\n      dispatch(increment());\n    }\n  };\n}\n```\n\nCreate your functional component and call the `useThunkReducer()` hook as if it were `React.useReducer()`;\n\n```js\nimport { useThunkReducer } from 'react-hook-thunk-reducer';\n\n// ...\n\nfunction reducer(state, action) {\n  switch (action.type) {\n    case 'increment':\n      return { count: state.count + 1 };\n    default:\n      throw new Error();\n  }\n}\n\nfunction Counter({ initialState }) {\n  const [state, dispatch] = useThunkReducer(reducer, initialState);\n\n  // ...\n\n  return (\n    <>\n      Count: {state.count}\n      <button onClick={onButtonPress}>+</button>\n    </>\n  );\n}\n```\n\nDispatch your actions using the augmented `dispatch` function.\n\n```js\nconst onButtonPress = () => {\n  dispatch(incrementIfOdd());\n};\n```\n\nThe value of the inner function will be returned when dispatching thunks.\n\n```js\nfunction incrementAndReturnCount() {\n  return (dispatch, getState) => {\n    dispatch(increment());\n\n    return getState().count;\n  };\n}\n\nconst newCount = dispatch(incrementAndReturnCount());\n```\n","readmeFilename":"README.md"}