{"_id":"use-redux","_rev":"31-1afdffc1f4f22d8e76d9805e4e4056da","name":"use-redux","dist-tags":{"latest":"2.2.1","current":"2.2.0"},"versions":{"0.0.1":{"name":"use-redux","version":"0.0.1","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":"","license":"ISC","_id":"use-redux@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"streamich","email":"vadimsdaleckis@gmail.com"},"dist":{"integrity":"sha512-XnHHnrfJVM/JSYQpT4asDtIiWmRU0l2aZXgP3UPK3BubQNtDlospbAnGo0bagGCjjWg/i41ZsiahNWk8urTSaw==","shasum":"e14a5feb0ee986dac9d61a17d7a98dedfd464926","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-0.0.1.tgz","fileCount":1,"unpackedSize":205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb0j/ECRA9TVsSAnZWagAAnDgP/RjiVdxHdNiJnVOcbaub\n3Sr/jD+KvlG2f+jBljlVL6MNFTn8IMDn3sqyNKi857h2iEx3vziDMtiz9Fcg\nF5UYuVQMKO7gEiJ/I5vXQcpzzZuIf0T0q2vww4ESS6qUOgAav9c5XCEdtulV\nB5NxTuvCD7fe3aGBcWzdANkzDG9w9iVS/2+5BqbxCovwwfNFG/RZbfjcTYDm\n8r9L4GjFT1wrV6xdzFOHAdDqt6P7tGIlqujyHyIz16tlIQNQc6TogYFtVPWU\nhNgiVbSB/gAzvQjWalWOhfwNJEhuHjCa0bkcPQlshEmjqMsiKn4ufPAKza2r\nRUOVTsKBHGGg7G2aq2LMsrDHo385laemFO31EcfcmUyxmixoHoUFmEYIJSLg\nPSVrampR2GwSh5Dgov/GQVLAMGm+N/sdV5soXxMTNyUs/GyByqsLTW5vCk7l\nDeOWgJmf6l3vd/xl7yywMs+XYZj7f18WUXdH0nWEX18OXoWVNJcMQ9bj0ldl\nJwwACuVZRMlJ6/hEvUsz2TSwXkhowN0lxPj0jr0AdldYKtb9UIG1fh4KqSpv\ng/5bfgHXBmIG+tni9Amsf378vYAibONgv8LAzlq+WPHneRK2cc8ZBsurFy8f\n6wdcbDkt3ECT+vHnhXMjaWhf0YAgM+TrQLlXIX3jhlcWmQ5dWOlDedrXLygE\nPa5C\r\n=YPWk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGF1534KSKFi+FgA63p0RmRI1KbrVEgJt/FxPikj04gvAiB8iC3vvJjKGmSVyISKmtv8JdK5LORYe3nzr1AMa6c9BA=="}]},"maintainers":[{"name":"streamich","email":"vadimsdaleckis@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_0.0.1_1540505540189_0.6143820477031627"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"},"1.0.0":{"name":"use-redux","version":"1.0.0","description":"React binding for Redux using react's hooks","main":"./lib/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/flepretre/use-redux.git"},"devDependencies":{"@m6web/eslint-plugin-react":"3.1.0","@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-proposal-class-properties":"^7.1.0","@babel/plugin-syntax-object-rest-spread":"^7.0.0","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","babel-preset-minify":"^0.4.0","react":"^16.7.0-alpha.0","rollup":"^0.67.0","rollup-plugin-babel":"^4.0.3","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-uglify":"^6.0.0"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"resolutions":{"babel-core":"7.0.0-bridge.0"},"scripts":{"build":"rollup -c"},"gitHead":"4465353bc32e9ac665aee931ccae77e6e4db7e95","bugs":{"url":"https://github.com/flepretre/use-redux/issues"},"homepage":"https://github.com/flepretre/use-redux#readme","_id":"use-redux@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"dist":{"integrity":"sha512-uQhDKfE4xlDF+Etmh0aawnnX94OUX9SjIMznKDeLZmevOh/4SqjU3N8LlLNFo2sWSuknwUJLvMMLq4jH9Yabog==","shasum":"7d1ce7f1f2c764ed8540dc5b803a4ed0a1c954eb","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-1.0.0.tgz","fileCount":17,"unpackedSize":220907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb49FkCRA9TVsSAnZWagAABs0P/i471nqkFuIuJ8qDM13D\ncVMCg0MheHmbnmsiKVu/V7mMhn3KUqfEf2Gd1VdQrsTBz8vwXr/GjtREV4lz\nRRPKFIsiMxMw8/ftxGqM8FsdEXilD1WxWfHNQqix3qNf/59hVfNu1NHdfnx+\nLt/EymTDiql/HOux09rdhEPycUiRzxsuoJShbeVpGGIMpsHI90icsI8IP8Jm\nYqsSzvx6F1ep1C/1PG3CsnvBUaPZ4BGCB2ANzfgEsvdLh+oKcLRst7eDgMAX\nMJfmo7Tn8IPknVlW5giVX1kbxa1ZxC6skIXtDJHiqwCA6u/n1e9N1Gz8wHLt\nZORE3a6WfpeBG+dN6QNMLEKCOz4RV90KoWx1XoV/pP6HKkXQsyw+TTTZKfgU\npKMLhtunwT3APdUz0PZDBQMXWnmMsqQJvqLx2ivCMIQl6y2JhKrmJGFqXukd\nQfo6MClsF5pk6PKszQJqzOyFWkhzuMlm9O4mUG5y2VB/jxImbM2jXuJMuYMM\n+id+2w8EGg1R6Rrv2XwxK1kyndJj2NLlb8RLUyi1zsZc+iu2kx0gbH9HoQrD\nuvS5Umi228cB7Dx8G4wFRvxj6WlJT03C9i/IAx3RIcBFk5JTBZLuquVAwbTq\nPN0714gfNpizZusF0Q+o3kECWEPrEHg1+ieDrcmcziXjiqQyPZp8zVUxcRXa\n8GPk\r\n=AGgS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFAg8bkoi6rn5cJgza65C3smvStX3xJS7FKH/s+d7NmyAiAYyAZer80xJpZfEo9dQC+P/vxqDxyhu2DVy8EeQK7boQ=="}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_1.0.0_1541656931922_0.9791999927663635"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"},"1.0.1":{"name":"use-redux","version":"1.0.1","description":"React binding for Redux using react's hooks","main":"./lib/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/flepretre/use-redux.git"},"keywords":["redux","react","hooks","state"],"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-proposal-class-properties":"^7.1.0","@babel/plugin-syntax-object-rest-spread":"^7.0.0","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@m6web/eslint-plugin-react":"3.1.0","babel-preset-minify":"^0.4.0","react":"^16.7.0-alpha.0","rollup":"^0.67.0","rollup-plugin-babel":"^4.0.3","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-uglify":"^6.0.0"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"resolutions":{"babel-core":"7.0.0-bridge.0"},"scripts":{"build":"rollup -c"},"gitHead":"2841037fbbc0bc5683a9a9c37d4ed860d48d3e5a","bugs":{"url":"https://github.com/flepretre/use-redux/issues"},"homepage":"https://github.com/flepretre/use-redux#readme","_id":"use-redux@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"dist":{"integrity":"sha512-O0SMZNRbQg0qC1avy+//v+foBF7KncNWEIk5iy4qLjg7unH44OYuLz/XaysceqWwibGVq98Fvh78TR6Aqk4jCA==","shasum":"7e10b7028f1cf14622effe15bab8f4523e566a45","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-1.0.1.tgz","fileCount":3,"unpackedSize":4808,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb49/dCRA9TVsSAnZWagAAelQP/iSxe8S9+BUT+nfPG3RD\n3HoueRuIkuWTcXOPdw0w8iLM1Sqv86vY0XkVxD2qZYgO13HjKM3pT7yH9BWV\nOCSoH2l2v+42soKUbM+Dm3Xdslme++HYWg6oTv4/YLenTiI1razQ6W/2sFtS\nFot74OSlbXRHKVJW58k3GwQb5iw+RDoUd3TsiJAJCNvrnmPVNCjNm3CClj1M\nnMg8s/EHYVmBdhLD+zf97B5k7WpHkynmqgc2Xsi9MjHtuu4ODQww2tt21fPt\nAkBPJAvndzdlWUm8PhPscDovYeinQoOiFisf2pSDjnV1z9EqaIHR5apLiMct\ndsAhyjzA3ohZVBrenNbwtLjkTkj2+yhtXw9N1bgBNT9jA+MtOOkhFH4ZUowM\nu1yiQfpFO9d4VIXld7ZoZYM1VixfUESmu9HSZDzLHTrWkjcXOYrnuhO/0XP6\n12T0Apnmd9cfF1lNB6N14krPICyK5N2Disbl59fkxT+zed/ZOFZDjzKDGx39\nvJxkVML7efF0aXebrOeSX9Fy9TS8QJvwu8lNYgfsFy0jNOz38pzCfrgsZsyv\naS3wPMhjAyIW2UPTUz/sns7lr5doOBdYmqhc5btHJ+quPm0LO9YxJm4VToOY\nNnI7dbasrAwGQbpgR0JKb0kKxPEqpXXKfZ+k9lcudp6KWsBWDdlI1Ru0Z/EX\n8r+o\r\n=zrn6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7X5G1Wzyc5BrV5wlrAQzZvhfDBM1PMPWW4l1jYNzotQIhAICRe/edHtqQcATIkfvNOnnexpoSQxOFqHXKACkiWIaO"}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_1.0.1_1541660636921_0.736245837486466"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"},"1.1.1-alpha":{"name":"use-redux","version":"1.1.1-alpha","description":"React binding for Redux using react's hooks","main":"./lib/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/flepretre/use-redux.git"},"keywords":["redux","react","hooks","state"],"devDependencies":{"@babel/core":"7.1.6","@babel/plugin-proposal-class-properties":"7.1.0","@babel/plugin-syntax-object-rest-spread":"7.0.0","@babel/preset-env":"7.1.6","@babel/preset-react":"7.0.0","babel-loader":"8.0.4","react":"^16.7.0-alpha.0","uglifyjs-webpack-plugin":"2.0.1","webpack":"4.25.1","webpack-cli":"^3.1.2"},"peerDependencies":{"react":"^16.7.0-alpha.0"},"scripts":{"build":"webpack"},"gitHead":"ecf9371135ebb258aac5956743e97f3d245d83b2","bugs":{"url":"https://github.com/flepretre/use-redux/issues"},"homepage":"https://github.com/flepretre/use-redux#readme","_id":"use-redux@1.1.1-alpha","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"dist":{"integrity":"sha512-PuutdYdQrSaSa0j5x7oGkK28v2HJf6UR1x5KK2wnyu+2JQuVYjawjRe8tzkO6fkuGJYVbcluWH7GRx6I+Sq/OQ==","shasum":"2f03732d9fd1669fb7490e9a6a7003f09e0febb5","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-1.1.1-alpha.tgz","fileCount":3,"unpackedSize":13117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb8AxECRA9TVsSAnZWagAAQYUP/RC6Ty8A0CyVM1kQkcP5\nh+qymmyd19ioYzfvQAk6SMTxkePz42DqKlXAkFZsLFoV9lTTHMCReckXa9hH\nShoBAK/HHmuHgkCr1L0q8zBp3EOCNL64YPMLKcHrQ0PvdeK7Y/95mgxKoyqo\n/Qcbekn8vdKliA3YXZjIYciKn6/iGw7rN9h/wpZH6MOVDIvnVyChNf86IvWA\nPo6TZSGi9xY8XP/cMrgvqnTE5vYrpXFMWP7Zz8JtYUAYDLXdSsoSWNh1bo3a\ncn0pFIWVYwNVSBbrroeg20unRBG1bDmiwupeYuP2ygPvRx+o3LdYXewc/5Jd\nXRnwr3aiR93nvZVE/bFac+4BK8OUdB5EiR9ZJFnVc00OtQSOv6DA4YbyFb0L\nu/T/ao2Egqctv8K/PBPXFba6qsi4kXB3cqZ5+jaafExWXkw+0Gc0HFUEo7ht\nk5hs5TiDJ38CLQktbzBEvpSFpQmevt3DHkYh4mwiV7P4eLLHDGC/WicvI1Nt\n4z776R8sAZfXzf1QrM3xf3x/idwsPwJMceSyrIK/HFe/2n+HLG8sBp77KI0i\n55OksRKsFdvONUBN+AXJe/tgJ0qm1DmVjnvC+Q/phI1CeJ2auU+l2+kjAw5T\ntd/a6018SVKHoYT/fAaMHZjZ0ybFWKrtkLPWRuSHVCRxUbBWcUyFbNc9GF7J\nwjbq\r\n=1eNc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXcswfCjHeNyxXQfiJ+Pn1Jtt0xWIhFDtL2guNDSs9PwIgdBPzfiAifGo5rAaXwRITGhRRT9LE4HUhnTo2q2gMMnY="}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_1.1.1-alpha_1542458436134_0.0825465993920731"},"_hasShrinkwrap":false},"1.2.0":{"name":"use-redux","version":"1.2.0","description":"React binding for Redux using react's hooks","main":"./lib/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/flepretre/use-redux.git"},"keywords":["redux","react","hooks","state"],"devDependencies":{"@babel/cli":"^7.1.2","@babel/core":"^7.1.2","@babel/plugin-proposal-class-properties":"^7.1.0","@babel/plugin-syntax-object-rest-spread":"^7.0.0","@babel/preset-env":"^7.1.0","@babel/preset-react":"^7.0.0","@m6web/eslint-plugin-react":"3.1.0","babel-preset-minify":"^0.4.0","react":"^16.8.1","rollup":"^0.67.0","rollup-plugin-babel":"^4.0.3","rollup-plugin-node-resolve":"^3.4.0","rollup-plugin-uglify":"^6.0.0"},"peerDependencies":{"react":"^16.8.1"},"resolutions":{"babel-core":"7.0.0-bridge.0"},"scripts":{"build":"rollup -c"},"gitHead":"c35c2a455281e85c9da10633ecda92b770f24022","bugs":{"url":"https://github.com/flepretre/use-redux/issues"},"homepage":"https://github.com/flepretre/use-redux#readme","_id":"use-redux@1.2.0","_npmVersion":"6.5.0","_nodeVersion":"10.11.0","_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"dist":{"integrity":"sha512-Gln5IOrb1wAK9OhMi3bm1LLynpXQ4izoDMGCLiqcMcPCIHFf/S/2lio+shxlARkP5rwpY/Cf7NWUejBxCaTebw==","shasum":"55d8a4a104601f51d1c4f5203267d09af33a3d05","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-1.2.0.tgz","fileCount":4,"unpackedSize":5865,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcY7ZzCRA9TVsSAnZWagAAti8P/R26k1AClXPgpWrapkDg\n65e9z3SMaF/l4gdDaboIcnkUJqmF7YjKxj47ahcz/MsbHgD7O8k52N489RlN\n0wg7IBtl80Tm/mmv2eu0ULFxmSJNsZ8A2p4GrWGYWEUI7GvY3Fjce/5Trd7y\n5aLadtEPH6tT0rOG0WLbrVWXejMos9wqTkZeJ/+wSPzkFPlHKHpx93R5w3xM\n7tW6kULbgqO2sL3Jx/r8GwFYD+GaNPAhB7RzDXbkGCmt76Bot6phiXQKCNow\ng6kdYWRrFZvobLApI+7y4XrRtewQ7R4LWCTtq70z9hFdd40WwwICK/sKv5l9\nAuC5fvpt2dN2VxeIb6mRGBdpMf1UXvKlqgR+jt5XNdvRRFXCs+8xXAYUUDzW\nnkjTayUuyJYUgRZ/Wre0AX2zinQm0JUJC4cNq+HmezXw8lyzdcMOgWE+Ijnf\nkPIY1eUEf+2yFdxY11o9r1YS3vrH4EpyPEIoq3cT7cpu1ufmX9AvrxRmwUzn\nr6qdREzp0M31NtcM1PD049TXoG4JQtTuvmBy7FxccnhdPU6Oil3lON3PTmiu\nKM23Tb8bz+93UcYdXiB3oIP8629g2u1koXqTWnBZlD8D6It5LW5dtow9uis9\nipuantOIqFZXILDf9ypS7JHg2SpViKTDe5C4vGUWu3hPrwHIIXAXrirRsvFI\n2h8V\r\n=ZxZt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHbUWJrbF2arE3nrCU5mllG/Z9PDYomr49QE4As2A6cAiEAhYmcIVBqQMxVbNxzSpryq3q2we6mdWAKxHJoA2fhN6g="}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_1.2.0_1550038643001_0.5516538130733883"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"},"2.0.0":{"name":"use-redux","version":"2.0.0","description":"React binding for Redux using react's hooks","main":"./lib/index.js","module":"es/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/flepretre/use-redux.git"},"keywords":["redux","react","hooks","state"],"devDependencies":{"@babel/cli":"7.2.3","@babel/core":"7.3.3","@babel/plugin-proposal-object-rest-spread":"7.3.2","@babel/preset-env":"7.3.1","@babel/preset-react":"7.0.0","@m6web/eslint-plugin-react":"3.2.0","babel-jest":"24.1.0","jest":"24.1.0","react":"16.8.3","react-redux":"6.0.1","redux":"4.0.1"},"peerDependencies":{"react":"^16.8.1","react-redux":"^6.0.0"},"scripts":{"build":"yarn build:commonjs && yarn build:es","build:commonjs":"BABEL_ENV=commonjs babel src --out-dir lib --ignore src/__tests__/*","build:es":"BABEL_ENV=es babel src --out-dir es --ignore src/__tests__/*","format":"prettier-eslint --write 'src/**/*.js'","test":"BABEL_ENV=test jest"},"gitHead":"d046b54fe731ca95b108d32b4aedb97e026038dc","bugs":{"url":"https://github.com/flepretre/use-redux/issues"},"homepage":"https://github.com/flepretre/use-redux#readme","_id":"use-redux@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.11.0","_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"dist":{"integrity":"sha512-7CfpmfWyVx8pUKl6bg0lIXjMGv98e5uabpOAwIfm85M+cAEJpJKbjpw95QSEOS+VJU6AKmojw1rOPdD7mciJ4A==","shasum":"765d5de8733888309ca78831ae6f3e79f581a6bc","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-2.0.0.tgz","fileCount":7,"unpackedSize":8090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcc91vCRA9TVsSAnZWagAADQoP/jNIUka//xKe69A6hLIz\nBot0ouCp/h23GGLJbgT69/yKRNQSOFeGxQlArDSIQIrOdln2Bq82SlqSEq/K\nLdIY0KwD/P5e2hyn5iL0ag/U7zhPz4xvAoxnBa+8K/1GZnUAp6ekxcHlA6sQ\nEucDPzC/x6cXpz15hHlom18EowcpDgpOmGXjmkOEykorhPmSWH9nZjBolL1f\nq/EHyGmJI6SYxisE1kA3GIHkV/wV41o7EpETa+qnWsUGo34AzqzCmwop5zjS\n9r61ZJySXNZCSS2ppRPiJTPoOcIENLpD0Bwn5Ox6Upd2sVkjuhYJDzJHI87w\nwJg7hD8gZagnZcBvKDR6l4OS4ILbiVg5WXJcdd4WBGfYNgoZqCm+hfHjvFNY\nB+xy3Q61iL2514alAL+F7C9haoHbCMDeT5jqKC6LvZaQzhrxhFayyXj+z8+2\nETxsdpiUwafqMEKdOijIMCyVzNMZ/Awdg3uzXwhXTecvOCIK/UpDNE50CA1f\n8kC1JHrfE5AFFKBvX7DB/zSrPTWS2mwOb/GXhjY2fsxPHj9hXcUSvU1EMoY/\ntYgAAv3+TfH9vmpr7cQ2broUz8q8d720KI4egG7rQOxxGDzv4HUlUu9cCjWM\nxgDaPwplK95ZCpPX91xidoYS57O0cxPBgyGqvU1yiHsSXHt8YNvBSeE2wWLk\n2qrm\r\n=VCa+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBiBimY6AhDX9pwC9ZWD2yMDp+84Q8rbralykCtgJ32bAiAMNm8wELUr6i1QHjdp3+6ZbN97Zev6LdC/WLh7/ydW2Q=="}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_2.0.0_1551097198927_0.6808357717211826"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"},"2.0.1":{"name":"use-redux","version":"2.0.1","description":"React binding for Redux using react's hooks","main":"./lib/index.js","module":"es/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/flepretre/use-redux"},"keywords":["redux","react","hooks","state"],"devDependencies":{"@babel/cli":"7.2.3","@babel/core":"7.3.3","@babel/plugin-proposal-object-rest-spread":"7.3.2","@babel/preset-env":"7.3.1","@babel/preset-react":"7.0.0","@m6web/eslint-plugin-react":"3.2.0","babel-jest":"24.1.0","jest":"24.1.0","react":"16.8.3","react-redux":"6.0.1","redux":"4.0.1"},"peerDependencies":{"react":"^16.8.1","react-redux":"^6.0.0"},"scripts":{"build":"yarn build:commonjs && yarn build:es","build:commonjs":"BABEL_ENV=commonjs babel src --out-dir lib --ignore src/__tests__/*","build:es":"BABEL_ENV=es babel src --out-dir es --ignore src/__tests__/*","format":"prettier-eslint --write 'src/**/*.js'","test":"BABEL_ENV=test jest"},"licenseText":"MIT License\n\nCopyright (c) 2018 Florent Lepretre\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"use-redux@2.0.1","dist":{"shasum":"301bb939b43cdad62ac4d659b79b763f7c9dfc11","integrity":"sha512-V2bFnKFGEQjVrnZCrouuKjqBpzhI4begLJWWKZt0wFeJLLuyDwyQ/b8xxaktbqFWF3aapIhGJbv/fTpSmY73oA==","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-2.0.1.tgz","fileCount":10,"unpackedSize":8426,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdPCECRA9TVsSAnZWagAAIXkP/Rr2+t4jRTxJSLvpGtjF\neZbMhWeczYgfsgnmT7S1WegwOJ5scUMkrWb7FfmqdK3isE9K5LjMWejGJ4q7\ngSba+9wYtrNUF3pEeFps2l0IabOkX3v/ZPVaVjlFVGHYPvANqJXNfgI/xFRP\nMNbxcyNb86n+wr0GJQUwByU8SxI/4Ti+OThyjvgY9q7EB+/3LDIgXEAISp07\n4ub+2y4sXI4Z+HcRR98uPvnTP6BReSY/poG27OQJrUT3aJQk/lb1BBFtW3up\nor7HsHkIoQC+oFXEeHR77AX6mbfDmHl1KpSJo0PBeCylBB8Zuu/UE6PaGft5\nyRu5Pz0L1aRFhTaiF6BniyylGaKgLMYcEo06o2tWOdcb7IlmKP9s3RIib79D\n/l65fyLPfqmLK0oYlAo0B0rNxOxDxqY6cqMWPa7o2e0qGa+g32rkYXi0lM/c\nIJ7021dyagqpiXYC6tADppJu1p67l0hZTizJbsSJYJI2trFGYzgiv9gjI50l\n513zKQjlo6EAZeT+0BERwQuD241M8/1dcqXWHeKfDm610EMa21TC9oU9YYcJ\nL6LZc5LuB/E8oAFcgHwUQ+wbw9DTKmm6QFIsShSGHZhzcUBJqdYQT9yPYOQy\nRpBHurNof32d1bdB7n3JpuFCMSQkHY8CipRTJ1ik3seY8Hgh0Y2mIxb5Q5u8\nOWTt\r\n=O9re\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuaNuS1zGjM186sjcm9m4fdfN01q3Iyc2WozkVg75KjAIhAOBjQoBOaIiLoGRDrvmsZkDLZ1MqHX3ioQa96RJ/vaTh"}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_2.0.1_1551167620186_0.7879505901506048"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"},"2.1.0":{"name":"use-redux","version":"2.1.0","description":"React binding for Redux using react's hooks","main":"./lib/index.js","module":"es/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/flepretre/use-redux"},"keywords":["redux","react","hooks","state"],"devDependencies":{"@babel/cli":"7.2.3","@babel/core":"7.3.3","@babel/plugin-proposal-object-rest-spread":"7.3.2","@babel/preset-env":"7.3.1","@babel/preset-react":"7.0.0","@m6web/eslint-plugin-react":"3.2.0","babel-jest":"24.1.0","jest":"24.1.0","react":"16.8.3","react-redux":"6.0.1","redux":"4.0.1"},"peerDependencies":{"react":"^16.8.1","react-redux":"^6.0.0"},"scripts":{"build":"yarn build:commonjs && yarn build:es","build:commonjs":"BABEL_ENV=commonjs babel src --out-dir lib --ignore src/__tests__/**/*","build:es":"BABEL_ENV=es babel src --out-dir es --ignore src/__tests__/**/*","format":"prettier-eslint --write 'src/**/*.js'","test":"BABEL_ENV=test jest"},"readmeFilename":"README.md","readme":"# use-redux\n\nHook to access redux\n\n## Getting started\n\n### Install\n\n```sh\nyarn add use-redux\n```\n\n### use-redux\nYou can get the redux state and the dispatch function with `useRedux` custom hooks.\n\n```jsx\nimport { useEffect } from 'react';\nimport { useRedux } from 'use-redux';\n\nexport const Clock = props => {\n  const [ state, dispatch ] = useRedux();\n  \n  useEffect(() => {\n    const timeout = setTimeout(\n      () => dispatch({ type: 'SET', count: state.count + 1 }),\n      1000,\n    );\n    \n    return () => clearTimeout(timeout);\n  }, []);\n\n  return state.count;\n};\n```\n\nThis way you can read the redux state in the `state` variable, and dispatch redux action with the `dispatch` function.\n\nIf you don't have a Provider from `react-redux` in your app see the [Provider section](#provider-react-redux) below.\n\n### with selectors and action creators\n\nBecause your component should not access to the whole state and and the dispatch function, you can pass selectors and action creators to useRedux like that:\n\n```jsx\nimport { useRedux } from 'use-redux';\n\n// Some selectors\nconst v1Selector = state => state.value1;\nconst v2Selector = state => state.value2;\n\n// Some action creators\nconst a1Creator = () => ({ type: 'FOO' });\nconst a2Creator = payload => ({ type: 'BAR', payload });\n\nexport const MyComponent = props => {\n  const [ v1, v2, a1, a2 ] = useRedux([v1Selector, v2Selector], [a1Creator, a2Creator]);\n  // v1 and v2 contains values selected in the redux state\n  // a1 et a2 are function that dispatch redux actions define in creators\n  \n  // render stuff\n};\n```\n\nSee documentation for redux [action creators](https://redux.js.org/glossary#action-creator) and [selectors](https://react-redux.js.org/using-react-redux/connect-mapstate#use-selector-functions-to-extract-and-transform-data).\n\n### useSelectors\n\nIf you don't need to fire actions, you can just use useSelectors hook:\n\n```jsx\nimport { useSelectors } from 'use-redux';\n\n// Some selectors\nconst v1Selector = state => state.value1;\nconst v2Selector = state => state.value2;\n\nexport const MyComponent = props => {\n  const [ v1, v2 ] = useSelectors(v1Selector, v2Selector);\n  // v1 and v2 contains values selected in the redux state\n  \n  return <div>v1: {v1} and v2: {v2}</div>;\n};\n```\n\n### useActionCreators\n\nIf you don't need to read the state, you can just use useActionCreators hook:\n```jsx\nimport { useEffect } from 'react';\nimport { useActionCreators } from 'use-redux';\n\n// Some action creators\nconst setCreator = (payload) => ({ type: 'SET', payload });\nconst resetCreator = () => ({ type: 'RESET' });\n\n// Hook that set things on mount and clear them when unmount\nexport const MyCustomHook = (payload) => {\n  const [ set, reset ] = useActionCreators(setCreator, resetCreator);\n  \n  useEffect(() => {\n    set(payload);\n    \n    return () => reset();\n  }, []);\n};\n```\n\n## Dependencies\n### react-redux\nIf you're already use [redux](https://redux.js.org/) in your app, you probably use [react-redux](https://react-redux.js.org/) to bind redux to your react app.\n\n`use-redux` uses the context of `react-redux` to access the same redux store. \n\nIf you don't have `react-redux` you need to install it.\n\n```sh\nyarn add react-redux\n```\n\n:warning: Due to the new react context API, use-redux is only compatible with `react-redux` v6.0.0 or higher.\n\n### Provider (react-redux)\n\n`use-redux` exports the Provider from `react-redux`\n\nFirst, surround your top component with the `Provider` and provide a [redux](https://redux.js.org/) store through the `store` prop.\n\n```jsx\nimport { createStore } from 'redux';\n// The provider has a slightly different name so you can easily know where it came from\nimport { ReduxProvider } from 'use-redux';\n// Or directly from react-redux \n// import { Provider } from 'react-redux';\n\n// redux store\nconst store = createStore(reducers)\n\nReactDOM.render(\n  <ReduxProvider store={store}>\n    <App />\n  </ReduxProvider>,\n  document.getElementById('root')\n);\n```\n\nSee https://react-redux.js.org/api/provider for more\n\n### connect (react-redux)\n\n`use-redux` exports the connect function from `react-redux`\n\nSee https://react-redux.js.org/api/connect for\n\n\n","licenseText":"MIT License\n\nCopyright (c) 2018 Florent Lepretre\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"use-redux@2.1.0","dist":{"shasum":"c37119a465bfb19f7443ae62864e775369b35d01","integrity":"sha512-gyLOlkA/cQEKtrHlqj4/aBmH6IjefT+uahnnYOpZR0tibZ5OMYLZqLQGaiqtAqI2X4gCC6pg3fHN4GEC8zlt/Q==","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-2.1.0.tgz","fileCount":14,"unpackedSize":13525,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdkucCRA9TVsSAnZWagAA+s8P/RWZvfc54hnpntMP9IeN\ncpowirFX3dUvv4DF7Wpifdxl1YdMS1E3Nqm0qjCUdplpOqizj3m6Yx4ybtZf\nUYIHGeR5ceMIiq7x6raox1cpeXoYT3T8M2YFDhvCsOUvFzVgtL8YEQb2drTU\nLcGz6gURaAPofvSY1mFaUk9QKDL5s+YluA38LkKtXCoxOOLUMlJVT9AJziUM\nAwjwKoOsHRnkLWvme1lXdXeKnNElYmD4lpZ3ujwM4Zf3N13qNzpD3TzxeAvQ\npCnBqL4nBD0okmUiQWsjIhjh1wLQS8rOloVh8lVhZPnZhJskgzOsKEtFrAaH\nlkmKJqKeQ2cPL+PlgvLkaymyg0KT6wkepE8fiQZvp9aGkxt8RrAGJHsM1RZu\nL+dlNbxrS182O8EZf3Ka4cJLxOoxX0m6GL/nbUgUJUfkSx2wQYZYFw+ops0i\nMBTLqwp8kG527sFpIQ/yUDi5vIkXSYkOky1NSUPtPvkT5sx0Xio42h8GcvTl\n1I6Eex7Z/KSPkEQgb08SdPVk0OZ+5QGrYzoiQj08VW3CvlSBBLALAY0Nnaqt\ne3ICaIeC9wQmppPCXHZH4JelkDkkjrdriFchPdc8ynOnb+TJupzjpKbixNnl\nMLK+2PR6ZLLsYl+e7/QfOAEdxp3welBracsOOX1I02D2uEYNL2VxkzMOO6TL\nXG7/\r\n=pqt7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFYmf/81mbcSAa5qzdHI4BSUdt6kNBwebpgPJW0XX8KoAiEA/NpEdRIGWWKLbAI4mGhLAZTzpL84dYyJqELkJdFnam0="}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_2.1.0_1551256475697_0.8625098547580334"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"},"2.1.1":{"name":"use-redux","version":"2.1.1","description":"React binding for Redux using react's hooks","main":"./lib/index.js","module":"es/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/flepretre/use-redux"},"keywords":["redux","react","hooks","state"],"devDependencies":{"@babel/cli":"7.2.3","@babel/core":"7.3.3","@babel/plugin-proposal-object-rest-spread":"7.3.2","@babel/preset-env":"7.3.1","@babel/preset-react":"7.0.0","@m6web/eslint-plugin-react":"3.2.0","babel-jest":"24.1.0","jest":"24.1.0","react":"16.8.3","react-redux":"6.0.1","redux":"4.0.1"},"peerDependencies":{"react":"^16.8.1","react-redux":"^6.0.0"},"scripts":{"build":"yarn build:commonjs && yarn build:es","build:commonjs":"BABEL_ENV=commonjs babel src --out-dir lib --ignore src/__tests__/**/*","build:es":"BABEL_ENV=es babel src --out-dir es --ignore src/__tests__/**/*","format":"prettier-eslint --write 'src/**/*.js'","prepublishOnly":"rm -rf es lib && yarn build","test":"BABEL_ENV=test jest"},"readmeFilename":"README.md","readme":"# use-redux\n\nHook to access redux\n\n## Getting started\n\n### Install\n\n```sh\nyarn add use-redux\n```\n\n### use-redux\nYou can get the redux state and the dispatch function with `useRedux` custom hooks.\n\n```jsx\nimport { useEffect } from 'react';\nimport { useRedux } from 'use-redux';\n\nexport const Clock = props => {\n  const [ state, dispatch ] = useRedux();\n  \n  useEffect(() => {\n    const timeout = setTimeout(\n      () => dispatch({ type: 'SET', count: state.count + 1 }),\n      1000,\n    );\n    \n    return () => clearTimeout(timeout);\n  }, []);\n\n  return state.count;\n};\n```\n\nThis way you can read the redux state in the `state` variable, and dispatch redux action with the `dispatch` function.\n\nIf you don't have a Provider from `react-redux` in your app see the [Provider section](#provider-react-redux) below.\n\n### with selectors and action creators\n\nBecause your component should not access to the whole state and and the dispatch function, you can pass selectors and action creators to useRedux like that:\n\n```jsx\nimport { useRedux } from 'use-redux';\n\n// Some selectors\nconst v1Selector = state => state.value1;\nconst v2Selector = state => state.value2;\n\n// Some action creators\nconst a1Creator = () => ({ type: 'FOO' });\nconst a2Creator = payload => ({ type: 'BAR', payload });\n\nexport const MyComponent = props => {\n  const [ v1, v2, a1, a2 ] = useRedux([v1Selector, v2Selector], [a1Creator, a2Creator]);\n  // v1 and v2 contains values selected in the redux state\n  // a1 et a2 are function that dispatch redux actions define in creators\n  \n  // render stuff\n};\n```\n\nSee documentation for redux [action creators](https://redux.js.org/glossary#action-creator) and [selectors](https://react-redux.js.org/using-react-redux/connect-mapstate#use-selector-functions-to-extract-and-transform-data).\n\n### useSelectors\n\nIf you don't need to fire actions, you can just use useSelectors hook:\n\n```jsx\nimport { useSelectors } from 'use-redux';\n\n// Some selectors\nconst v1Selector = state => state.value1;\nconst v2Selector = state => state.value2;\n\nexport const MyComponent = props => {\n  const [ v1, v2 ] = useSelectors(v1Selector, v2Selector);\n  // v1 and v2 contains values selected in the redux state\n  \n  return <div>v1: {v1} and v2: {v2}</div>;\n};\n```\n\n### useActionCreators\n\nIf you don't need to read the state, you can just use useActionCreators hook:\n```jsx\nimport { useEffect } from 'react';\nimport { useActionCreators } from 'use-redux';\n\n// Some action creators\nconst setCreator = (payload) => ({ type: 'SET', payload });\nconst resetCreator = () => ({ type: 'RESET' });\n\n// Hook that set things on mount and clear them when unmount\nexport const MyCustomHook = (payload) => {\n  const [ set, reset ] = useActionCreators(setCreator, resetCreator);\n  \n  useEffect(() => {\n    set(payload);\n    \n    return () => reset();\n  }, []);\n};\n```\n\n## Dependencies\n### react-redux\nIf you're already use [redux](https://redux.js.org/) in your app, you probably use [react-redux](https://react-redux.js.org/) to bind redux to your react app.\n\n`use-redux` uses the context of `react-redux` to access the same redux store. \n\nIf you don't have `react-redux` you need to install it.\n\n```sh\nyarn add react-redux\n```\n\n:warning: Due to the new react context API, use-redux is only compatible with `react-redux` v6.0.0 or higher.\n\n### Provider (react-redux)\n\n`use-redux` exports the Provider from `react-redux`\n\nFirst, surround your top component with the `Provider` and provide a [redux](https://redux.js.org/) store through the `store` prop.\n\n```jsx\nimport { createStore } from 'redux';\n// The provider has a slightly different name so you can easily know where it came from\nimport { ReduxProvider } from 'use-redux';\n// Or directly from react-redux \n// import { Provider } from 'react-redux';\n\n// redux store\nconst store = createStore(reducers)\n\nReactDOM.render(\n  <ReduxProvider store={store}>\n    <App />\n  </ReduxProvider>,\n  document.getElementById('root')\n);\n```\n\nSee https://react-redux.js.org/api/provider for more\n\n### connect (react-redux)\n\n`use-redux` exports the connect function from `react-redux`\n\nSee https://react-redux.js.org/api/connect for\n\n\n","licenseText":"MIT License\n\nCopyright (c) 2018 Florent Lepretre\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"use-redux@2.1.1","dist":{"shasum":"cfbd0f8053da58eac11906ed7265dd6f0c3ee895","integrity":"sha512-fZB5ATGTcVDEurJDv6YbJqfwvVtl/icTI7h4qkW8twuLHqQZJBj+BFSXUrUqn9g5C0Yr5zAF0nr+7ruWzawT9Q==","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-2.1.1.tgz","fileCount":14,"unpackedSize":14086,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdkx8CRA9TVsSAnZWagAA8kIP/A7WK3lZjS0UFjHcni7B\nDNExKiUPR61+P+fON8iGlMNvxe5Ul4tq9St3YT2Yl0HaWOjlwqD68p6zoXSU\neozlcMOq/rUR67dM3ZqMaW6GaDMgWaOnioJBOfW3V/YmkBejNiABuUXGvLqa\ngoZAqms/HgqwtMUxadW83zEqk9vMzJIBwBe4/c02S2IhlSgiz2w1o3fEZIo3\nzT4O0mUkO3VrsETxwvGq7jmMPMxaUglgXO2mJF1uYGHC3g+StpVyzJ5HwNmR\nXyHd5q0fC+g0gauSoly4pLK2KLW7YvAphuLB9Y9VAfOqSZcqB0UY/SEC1xsf\noFbvILGMjbN4bmAnS5JvqH4gmhCmPg2Jtes/aDwGfHaKanDaR+wRtGlD+0BW\nuOx1P7v3KtU9PVr1IRHrXe0W7tMKtHo5uAwuIId3UceulJ3mOvtmwXS43bvQ\noSW75dkTHHZcVzqvIuyMdsokiBrdWuNq6RyG2x5UOjPliBhWBNNgN1fWxonH\nxmSzStKFJB7bSJNyoZYHlVDbzlLesw3SRThJjc6Vby8zFjx/ovZ3hzwculS5\nAw2BDIX4Kg7smWu0EDAZwUHnQs8Kx8b5B4s1OJ91LVYWg58dyz4Z2sdhLFXg\n5xOPDMEH01pIYWr9FWKsXcarB4KHypRAwYK3xyqDI5Eli6CKBBYis6rXoxhZ\nFt13\r\n=UEMz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpdzAWrZRnqNZDlLpk4pJRS2GX//qsIuiE2cojiA7glAiEAuwdSEcHsnr8InPZRk1NWEPAzo0OL1cDBytMD5r1f2O4="}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_2.1.1_1551256699829_0.24085959092059106"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"},"2.2.0":{"name":"use-redux","version":"2.2.0","description":"React binding for Redux using react's hooks","main":"./lib/index.js","module":"es/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/flepretre/use-redux.git"},"keywords":["redux","react","hooks","state"],"devDependencies":{"@babel/cli":"7.2.3","@babel/core":"7.3.3","@babel/plugin-proposal-object-rest-spread":"7.3.2","@babel/preset-env":"7.3.1","@babel/preset-react":"7.0.0","@m6web/eslint-plugin-react":"3.2.0","babel-jest":"24.1.0","jest":"24.1.0","react":"16.8.3","react-redux":"6.0.1","redux":"4.0.1"},"peerDependencies":{"react":"^16.8.1","react-redux":"^6.0.0"},"scripts":{"build":"yarn build:commonjs && yarn build:es","build:commonjs":"BABEL_ENV=commonjs babel src --out-dir lib --ignore src/__tests__/**/*","build:es":"BABEL_ENV=es babel src --out-dir es --ignore src/__tests__/**/*","format":"prettier-eslint --write 'src/**/*.js'","prepublishOnly":"rm -rf es lib && yarn build","test":"BABEL_ENV=test jest"},"gitHead":"da9e2b011c1b39b30323ae8a06e5890c76451c26","bugs":{"url":"https://github.com/flepretre/use-redux/issues"},"homepage":"https://github.com/flepretre/use-redux#readme","_id":"use-redux@2.2.0","_npmVersion":"6.5.0","_nodeVersion":"10.11.0","_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"dist":{"integrity":"sha512-deAsof8cy5Jw8JwhgcW8NS6Dc3i8nv70hPeNNVKmBIXZ9hQAaLONHEbirU4rByekm2iyrM9zcXIxtnVDzZImxA==","shasum":"4f4a4b27972d65f11fdb64948f50d56abc67d101","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-2.2.0.tgz","fileCount":11,"unpackedSize":14976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJclLR1CRA9TVsSAnZWagAAcDwP/RiqtaATugWF341gkuXV\nEVyLsrwWiMbUaWhFqSWSK7vKxekUXXnDtzC8baUK8E2VWISm5VyL14kcTMhE\nPpZbBfIR/S1cNMG81BOd3jzEtzQBfBQXyKk0uuP/RZMHe3wN8W6hQuAJdvqa\nTBO4gkcwH/6b37np3L7LxHSVAp4/yDT4YOALYBZoabVfMClanMBUCtDbq51a\nlv4Ud2NMoNmwYJjiWnQuGIWwF0OrpWREh9ISkWFBMWl3xFxsKkeVswFeTU4I\nVrqV/RLJoQr/Jx1bNBaZGF1k9xm0sN24SMJMru3aqVMP3LARqxftQm3LQDil\nVSRU/3ILED2hLioV5g8tOv66y9D8MR6dmgJSv+BxTdy+UpeDPC5Ll4QI0nWS\nmZcTBlROnyr8U1Z676o8sWlHfmAAq4LLdFcz4ZUdbbYZo4OxTXpkVdThR+9e\nVHZTIq0QrwcBKcsArVTT0KNh3AtQpg7IA8ZUAIE4ouU41EZP4tsTSxqRj+pS\nBZK/SLzY5fRz8Z1EV0ww5hH7HxhWxuM0i4Z+OHzRx0BpaiN5W6Bj1jpPabfH\nl/j2O21IkZpKkTjhOHCNaw9ERqUmcgAJSQ+zV3JPCZspgyBDc/v7j5waOb0d\npR6QOj8BHfoUvvrNc29vQ3vkXI0hcK4HFZFvJrKlptsL43T6QhD2j/qnylgw\nZlwg\r\n=kQ/q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsR+dLHLVFM4ZqM6iPlkJbsXGooGacuZPnzupoRGEyagIgFHuvohU5ZOIBh/4LTZMYLXYKy1O4H11vlAXJRAeBy8U="}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_2.2.0_1553249397253_0.3365188703496229"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"},"2.2.1":{"name":"use-redux","version":"2.2.1","description":"React binding for Redux using react's hooks","main":"./lib/index.js","module":"es/index.js","author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/flepretre/use-redux.git"},"keywords":["redux","react","hooks","state"],"devDependencies":{"@babel/cli":"7.2.3","@babel/core":"7.3.3","@babel/plugin-proposal-object-rest-spread":"7.3.2","@babel/preset-env":"7.3.1","@babel/preset-react":"7.0.0","@m6web/eslint-plugin-react":"3.2.0","babel-jest":"24.1.0","jest":"24.1.0","react":"16.8.3","react-redux":"6.0.1","redux":"4.0.1"},"peerDependencies":{"react":"^16.8.1","react-redux":"^6.0.0"},"scripts":{"build":"yarn build:commonjs && yarn build:es","build:commonjs":"BABEL_ENV=commonjs babel src --out-dir lib --ignore src/__tests__/**/*","build:es":"BABEL_ENV=es babel src --out-dir es --ignore src/__tests__/**/*","format":"prettier-eslint --write 'src/**/*.js'","prepublishOnly":"rm -rf es lib && yarn build","test":"BABEL_ENV=test jest"},"gitHead":"4ddcc2729108597546982337f7b4a3b35270afef","bugs":{"url":"https://github.com/flepretre/use-redux/issues"},"homepage":"https://github.com/flepretre/use-redux#readme","_id":"use-redux@2.2.1","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"flepretre","email":"florent.lepretre@gmail.com"},"dist":{"integrity":"sha512-6oCek3dcd6Z11+TGLZO5GVUmZ4cODKwfOPWJCAOpx5lucm1TZ2MY2YEg3yd37wLCwdl6qMxX/4v16Im5KlyH6A==","shasum":"6be98d479cefd55d850fdb74afcb8d09d9b14119","tarball":"https://registry.npmjs.org/use-redux/-/use-redux-2.2.1.tgz","fileCount":11,"unpackedSize":16196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAsgGCRA9TVsSAnZWagAA5GcP/2iIkqEYx9wMShdtUx6B\nLe0V3Ligrej4pupcN+qPHWK86iQat33c01Kw5TDaP9O6uAp6QeooCWzixEWt\n5lxgoEnoNVgEaUVqpgPr+n2dhE/2PBnmyae2P58MjShpvEwtbvtq8niTbqKD\n9WWwqWLtfL2rEBlha35v8664sc4cJvrqRXH1l3G4/AwOUwOfBFafYzCdCaIb\nSggIkMrqdQ2n/x6fdc8gfzVRcKyAA8FXo7XD49BUPoJj3g6pWyiycw0vGcqk\npQCcFysobapDn14AHpgudOiBEVu3u/M4e0VcpVgFNtfpEXr9AxnF4h4Lbexq\nM4VZXgCrFL4M3zuwRD1Q4xa1X6q00Q2nqfnlaK6JIu/ZR6tI/BaivdvD41Gy\nILWrtHNDPNWQoEy27faLcHvd9L93kvgEaSi60K75cEc/8sLDfXy6c9W9VV1n\nz8eN6UQAak7AzUJI2wB9vAVxySMYdxhBInW9i6YQCmXpQ3uAKVD3cmL/TF5N\n53KqmDQMewyUWGnpgHQ/zXW5FfMtegmtKHviTl+eDsx5Evt4vkofZbthlGrx\ncAtw3xryJa8H919gsbbofsT6jyUKfwFv3ug5WQCJDgJhPE7umNCknKwvmSJL\n4qRx4WXwm2X7PWh+xV2CvH7+XaCxj+aAfS6EvLjK7JHeInDLaVX+4VJ3WzqO\no7Qb\r\n=GAR9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDFgebjMneZI9RHrDjkLNHus2wFIQpobedjigXlcoOFAiEAsKEOO0LFRBelnpcSsW1Q3SCW318jAZROCEYdk68uNZg="}]},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/use-redux_2.2.1_1560463365727_0.1949406827200404"},"_hasShrinkwrap":false,"deprecated":"Use react-redux >7.1.0 instead"}},"time":{"created":"2018-10-25T22:12:20.188Z","0.0.1":"2018-10-25T22:12:20.271Z","modified":"2022-05-22T22:32:29.847Z","1.0.0":"2018-11-08T06:02:12.180Z","1.0.1":"2018-11-08T07:03:57.115Z","1.1.1-alpha":"2018-11-17T12:40:36.227Z","1.2.0":"2019-02-13T06:17:23.178Z","2.0.0":"2019-02-25T12:19:59.102Z","2.0.1":"2019-02-26T07:53:40.367Z","2.1.0":"2019-02-27T08:34:35.868Z","2.1.1":"2019-02-27T08:38:19.957Z","2.2.0":"2019-03-22T10:09:57.460Z","2.2.1":"2019-06-13T22:02:45.849Z"},"maintainers":[{"email":"florent.lepretre@gmail.com","name":"flepretre"}],"license":"MIT","readme":"# DEPRECATED  \n\nHook to access redux\n\n:warning: [react-redux](https://react-redux.js.org/) now provide hooks support.\nI strongly recommend you to use the official [react-redux](https://react-redux.js.org/) implementation.\nIf you already use this package switching to [react-redux](https://react-redux.js.org/) should not be too difficult.\n\n## Migration to [react-redux](https://react-redux.js.org/)\n\n### Provider\nFirst thing to do is to replace the use-redux provider by the react-redux one. Just change the import, it the provider underneath.\n\n### useRedux\nThe `use-redux` function was remove from the final implementation of [react-redux](https://react-redux.js.org/) hooks' so I recommend to use `useSelector` and `useDispatch`.\n\n### useSelectors\nHooks are designed to be called multiple time in the same component. If you have more than one selector, just make one call with `useSelector` for each selector.\n\n### useActionCreators\nFor this one you have to use `useDispatch` that give you access to the `dispatch` function.\nTo understand the switch from bindActionCreators in connect to the dispatch function with hooks I recommend you to read [this comment from Dan Abramov](https://github.com/reduxjs/react-redux/issues/1252#issuecomment-488160930).\n\n## Getting started\n\n### Install\n\n```sh\nyarn add use-redux\n```\n\n### useRedux\nYou can get the redux state and the dispatch function with `useRedux` custom hooks.\n\n```jsx\nimport { useEffect } from 'react';\nimport { useRedux } from 'use-redux';\n\nexport const Clock = props => {\n  const [ state, dispatch ] = useRedux();\n  \n  useEffect(() => {\n    const timeout = setTimeout(\n      () => dispatch({ type: 'SET', count: state.count + 1 }),\n      1000,\n    );\n    \n    return () => clearTimeout(timeout);\n  }, []);\n\n  return state.count;\n};\n```\n\nThis way you can read the redux state in the `state` variable, and dispatch redux action with the `dispatch` function.\n\nIf you don't have a Provider from `react-redux` in your app see the [Provider section](#provider-react-redux) below.\n\n### with selectors and action creators\n\nBecause your component should not access to the whole state and and the dispatch function, you can pass selectors and action creators to useRedux like that:\n\n```jsx\nimport { useRedux } from 'use-redux';\n\n// Some selectors\nconst v1Selector = state => state.value1;\nconst v2Selector = state => state.value2;\n\n// Some action creators\nconst a1Creator = () => ({ type: 'FOO' });\nconst a2Creator = payload => ({ type: 'BAR', payload });\n\nexport const MyComponent = props => {\n  const [ v1, v2, a1, a2 ] = useRedux([v1Selector, v2Selector], [a1Creator, a2Creator]);\n  // v1 and v2 contains values selected in the redux state\n  // a1 et a2 are function that dispatch redux actions define in creators\n  \n  // render stuff\n};\n```\n\nSee documentation for redux [action creators](https://redux.js.org/glossary#action-creator) and [selectors](https://react-redux.js.org/using-react-redux/connect-mapstate#use-selector-functions-to-extract-and-transform-data).\n\n### useSelectors\n\nIf you don't need to fire actions, you can just use useSelectors hook:\n\n```jsx\nimport { useSelectors } from 'use-redux';\n\n// Some selectors\nconst v1Selector = state => state.value1;\nconst v2Selector = state => state.value2;\n\nexport const MyComponent = props => {\n  const [ v1, v2 ] = useSelectors(v1Selector, v2Selector);\n  // v1 and v2 contains values selected in the redux state\n  \n  return <div>v1: {v1} and v2: {v2}</div>;\n};\n```\n\n### useActionCreators\n\nIf you don't need to read the state, you can just use useActionCreators hook:\n```jsx\nimport { useEffect } from 'react';\nimport { useActionCreators } from 'use-redux';\n\n// Some action creators\nconst setCreator = (payload) => ({ type: 'SET', payload });\nconst resetCreator = () => ({ type: 'RESET' });\n\n// Hook that set things on mount and clear them when unmount\nexport const MyCustomHook = (payload) => {\n  const [ set, reset ] = useActionCreators(setCreator, resetCreator);\n  \n  useEffect(() => {\n    set(payload);\n    \n    return () => reset();\n  }, []);\n};\n```\n\n## Dependencies\n### react-redux\nIf you're already use [redux](https://redux.js.org/) in your app, you probably use [react-redux](https://react-redux.js.org/) to bind redux to your react app.\n\n`use-redux` uses the context of `react-redux` to access the same redux store. \n\nIf you don't have `react-redux` you need to install it.\n\n```sh\nyarn add react-redux\n```\n\n:warning: Due to the new react context API, use-redux is only compatible with `react-redux` v6.0.0 or higher.\n\n### Provider (react-redux)\n\n`use-redux` exports the Provider from `react-redux`\n\nFirst, surround your top component with the `Provider` and provide a [redux](https://redux.js.org/) store through the `store` prop.\n\n```jsx\nimport { createStore } from 'redux';\n// The provider has a slightly different name so you can easily know where it came from\nimport { ReduxProvider } from 'use-redux';\n// Or directly from react-redux \n// import { Provider } from 'react-redux';\n\n// redux store\nconst store = createStore(reducers)\n\nReactDOM.render(\n  <ReduxProvider store={store}>\n    <App />\n  </ReduxProvider>,\n  document.getElementById('root')\n);\n```\n\nSee https://react-redux.js.org/api/provider for more\n\n### connect (react-redux)\n\n`use-redux` exports the connect function from `react-redux`\n\nSee https://react-redux.js.org/api/connect for\n\n\n","readmeFilename":"README.md","description":"React binding for Redux using react's hooks","repository":{"type":"git","url":"git+https://github.com/flepretre/use-redux.git"},"author":{"name":"Florent Lepretre","email":"florent.lepretre@gmail.com"},"keywords":["redux","react","hooks","state"],"homepage":"https://github.com/flepretre/use-redux#readme","bugs":{"url":"https://github.com/flepretre/use-redux/issues"}}