{"_id":"react-batched-updates","_rev":"3-b0c49cdff269d461a3df2eaf43f3d4a4","name":"react-batched-updates","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"react-batched-updates","version":"1.0.0","description":"Cross platform unstable_batchedUpdates","author":{"name":"Alec Larson"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alloc/react-batched-updates.git"},"main":"cjs/index.js","module":"index.js","scripts":{"build":"tsc -p . && tsc -p . --module commonjs --outDir cjs","prepare":"yarn build"},"devDependencies":{"@alloc/prettier-config":"^1.0.0","prettier":"^2.0.5","typescript":"^4.0.0"},"prettier":"@alloc/prettier-config","gitHead":"bf30915426660f1dc69f7a64c911e6a7731cb719","bugs":{"url":"https://github.com/alloc/react-batched-updates/issues"},"homepage":"https://github.com/alloc/react-batched-updates#readme","_id":"react-batched-updates@1.0.0","_nodeVersion":"15.8.0","_npmVersion":"7.5.0","dist":{"integrity":"sha512-DKinb+i+F7TmWKlsR4RMaLMShSIFhlvdGRTD/zMaTNqbhtQzjsmMPrA69jsKML1JlIrqgvFT9spP9DYwxhj+0g==","shasum":"5d3a9243e773762799c65fe42a51ea7a59549df3","tarball":"https://registry.npmjs.org/react-batched-updates/-/react-batched-updates-1.0.0.tgz","fileCount":11,"unpackedSize":7015,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZxw4CRA9TVsSAnZWagAAyBIQAIFwJ85nafvubMi8Z6QR\nzXzkkC/QGo/LACVURMWlFKiIC+ozttyKiLwKt5xls6Tb+o5PbQ/93Dgjsz1j\nGP4wYRdNsbdMzD0CeoWvHl58xZQnqlYMAIajT5Y2WcMTbC9OK97lrZ5F0W0Y\n1aP5nJ57TVACbkPZ1LUE55Pw8GWpDs2AWidSF6koqgJXMgd2vY+laXQYAl9h\ngyqOHUaSyvySQWIzktj6tACxfxpkpp3f+fzEXSYOntkBVYZ36xXnH1Vame4T\nCi20a61uBl2yy+tRfI43BZLMHnC3BlF8ttM0dxg5uTggTMnR9cJC+aKPaQj0\nACOpSE4RGAaK2lfMcBgtbJEL6lY1yXBDsNPU1Fvg/7iH1uPk1erTwgYfjQrJ\nDbdIYZuSAka4HiNtMgjpThV3IASE9tyGQL9vXF7dTap7fPOm2AB/qOcoXz/u\nt2X6C4Sm12iKk+UKWCSUna6QjbPkpK/e2xgQbgUUkUAtgxfBQnh+j3j9LX82\nnJPV0s9WU1YgyQ0U4JJ4W1VYquY15ICPJOkPzI1Yuf67pOR9K1kaCUUCOxCK\nc/5ZVzxzFr1fWkKHhblWZ1Nr1YJ0U/+LsB2tDKkO1s3kc8oQAQ3sKHfeyaUP\nRwtK9rDlfjNeI9LR7DTNAIkfI04s8DjC19d6iLMdnlOxf/G3tcU9RFe5FsVM\nBIP7\r\n=YHkg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICg6QXcpanrMmFQQnh94wtFswagxBDN1I5p2hZRGSZosAiEAh3N/8B2YClA+P797jRlauYWYqGgnMtmiW808b4NaMeI="}]},"_npmUser":{"name":"aleclarson","email":"aleclarson@protonmail.com"},"directories":{},"maintainers":[{"name":"aleclarson","email":"aleclarson@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-batched-updates_1.0.0_1617370168263_0.6799705915375376"},"_hasShrinkwrap":false},"1.0.1":{"name":"react-batched-updates","version":"1.0.1","description":"Cross platform unstable_batchedUpdates","author":{"name":"Alec Larson"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alloc/react-batched-updates.git"},"main":"cjs/index.js","module":"index.js","scripts":{"build":"tsc -p . && tsc -p . --module commonjs --outDir cjs","prepare":"yarn build"},"devDependencies":{"@alloc/prettier-config":"^1.0.0","prettier":"^2.0.5","typescript":"^4.0.0"},"prettier":"@alloc/prettier-config","gitHead":"8f477aa1286aa224807cffbe374f040a0075f55a","bugs":{"url":"https://github.com/alloc/react-batched-updates/issues"},"homepage":"https://github.com/alloc/react-batched-updates#readme","_id":"react-batched-updates@1.0.1","_nodeVersion":"15.8.0","_npmVersion":"7.5.0","dist":{"integrity":"sha512-NrHhi0/E4/cvVjCt7bv/E6oHiJCDSLglWRJgLRIHtqloSJ9m9ZErvrxw1Akc9IvtZBe+dsY67d5qWbShlfmUCQ==","shasum":"d3848f60e2019dd23ffe204ed05653d756702c94","tarball":"https://registry.npmjs.org/react-batched-updates/-/react-batched-updates-1.0.1.tgz","fileCount":11,"unpackedSize":7010,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZyAZCRA9TVsSAnZWagAA5w0P/1d21XyJH/iOALYe+Mjn\no/zn4ETwYJIJgOI1ViHkUM2IPHuwoGjMdECoaYNfoAkx69gwoTZfbckfUl+K\nBUr2bNGzemr6azzhj9+7H0aVeNHUs0I5ijtd08PZQy/J9oVnZJ/ZDvbLC0ch\nwSaabMpQAe9qD0NhoskTpzeY2EojSBWZeH/4JmE0VVEyt0QJIQIctsMOUKEb\nRsAWMQZjB15Q0lLXw0Wg0NKq6W6YuoUWxl/78+fPG8dooxkpjmlkd8tluChi\nl96VoCwZbq4yc/E3SWpzpC0IllNfDdiNdME2Qy+g+kqgI8WYk3GjNTQLRIHQ\nDd19xDkB6LI5YnDyQrNPRDNe9gS09vra0hZzgnXhWIYQMYpSemz+lm3x7m9U\nZm/cssUdxVlSxV/MWr02FJmosWWMgdFfeAQshmU4pBLRLBRbZnKU+FULLEWC\nWPie8CxOcCulYXAT+eIAAi6pQa4UFHGuHOfavoexulGPgAjr8H2AFve4IMxx\nTsQuCfT9sLkCe8V+82izbEO5AntN+LpN+mO+xiBS6nao+rRXZ2M2GLakGM1Q\nELAjs+MU3z8aBBWdiTD/eGtaEFznenPaBR9PGTuS4tW+6hgyPwZIoUOooQYb\nbakOkA5TT2n1q1DxGkBwYkCmbkrzZStk09WiVhRmVcZmVIuCeGl7/3d9SN4r\nuIGN\r\n=99Y1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/B6SJ7E3GsQSRXvGG+PCB0gKxuxq6NYKZYBg2jljDgAIhANQrd3NUq5IXp5kENDrSiWSE+84E/8B2XfUUzHMdi5pV"}]},"_npmUser":{"name":"aleclarson","email":"aleclarson@protonmail.com"},"directories":{},"maintainers":[{"name":"aleclarson","email":"aleclarson@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-batched-updates_1.0.1_1617371160648_0.02834786859411187"},"_hasShrinkwrap":false},"1.1.0":{"name":"react-batched-updates","version":"1.1.0","description":"Cross platform unstable_batchedUpdates","author":{"name":"Alec Larson"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alloc/react-batched-updates.git"},"main":"cjs/index","module":"index.js","exports":{"import":{"browser":"./index.web.js","default":"./index.js"},"default":"./cjs/index.js"},"scripts":{"build":"tsc -p . && tsc -p . --module commonjs --outDir cjs","prepare":"yarn build"},"devDependencies":{"@alloc/prettier-config":"^1.0.0","prettier":"^2.0.5","typescript":"^4.0.0"},"prettier":"@alloc/prettier-config","gitHead":"187dae5d4c727cc4cf7475f4f85c9a14c3e74bd3","bugs":{"url":"https://github.com/alloc/react-batched-updates/issues"},"homepage":"https://github.com/alloc/react-batched-updates#readme","_id":"react-batched-updates@1.1.0","_nodeVersion":"16.5.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-oE8oMUKp4oPfJz0NS7+2wYxW2bnih2BynbXMgyNwtoJhs48bEcpoXG2b/Jy0FUddHHZOpUGkwgc4S04TecfA1A==","shasum":"b3239de3d9e1ee3c4f7ae9e0ad6ab875f76f307f","tarball":"https://registry.npmjs.org/react-batched-updates/-/react-batched-updates-1.1.0.tgz","fileCount":12,"unpackedSize":7243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEtg4CRA9TVsSAnZWagAAzucP/0j7XrCXapp0OSKfRDV5\nvO3Bo1VpontmF53DRMfRqzH7Gwj7pwmx5VeZQALafPA2v2MQw0T2r6Jge5iA\nkaRNPCdb3gQvPvpNAP7tcfK8O41DYGHDE29TQDoORI09CoiqG3DF8bKRql/u\nDhOPzEMohbUp58NF6PhOLRlnjXiKYEoEJ/R6W8aN07+Y9RhnbVmyvL+67AO1\nNCQrlBsETordnf8+9sccuXc10NfLGNOi6Whd0Oat7TZPO/++Pd5aD/drzHOG\nA5qZnA2l/XVCVyup3M2rb92MZDEMyzLx1GSYEIc8iwrZE1WoS9bN6g/4Fj/a\ne9Fuyrb2P1b0FspvZGW2bHCHAy4C0XS2Gta9jR2/FtPa8xevk5J3MhaBmXxP\nwmu7h51g3aisb1GIirM3gvWunX/NmluJOWfyUeOgXrFb/bCq7xIMH8AlqdCS\n+cw6QRqieO2Nh8zs0BPyYuQXLe2oPNEAhHdBeYxu1fMZYxzquHaf9oTZTOOy\nRl2Xm8+aXwG3RwpLLEtyB9bVIr8LEtxFOx5PE0o1dxWl8vnESFhZBtyCgR9F\nNBdnVN0n6vAZnTuhL9c5jIdmqLNEMSpJZg+HGepQHbXFRhxIgXKl8B9tIHq8\n855il4cvKjggQ2Q9UG1iW7Vga1pgc8261zYXZfUwDGPuqpRDDVMuPZosSMVE\nNmR/\r\n=qBxQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/hBbd1K3n77B0fRHPfp/FIGu+sXaELN02TQq89cv5qAIgRbr53u2lFe30sIKs9ys7BwX0ekgsU+oNeHCXNjSyCo8="}]},"_npmUser":{"name":"aleclarson","email":"aleclarson@protonmail.com"},"directories":{},"maintainers":[{"name":"aleclarson","email":"aleclarson@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-batched-updates_1.1.0_1628624952040_0.5291965653599289"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-02T13:29:28.263Z","1.0.0":"2021-04-02T13:29:28.399Z","modified":"2022-05-14T06:49:33.974Z","1.0.1":"2021-04-02T13:46:00.795Z","1.1.0":"2021-08-10T19:49:12.169Z"},"maintainers":[{"name":"aleclarson","email":"aleclarson@protonmail.com"}],"description":"Cross platform unstable_batchedUpdates","homepage":"https://github.com/alloc/react-batched-updates#readme","repository":{"type":"git","url":"git+https://github.com/alloc/react-batched-updates.git"},"author":{"name":"Alec Larson"},"bugs":{"url":"https://github.com/alloc/react-batched-updates/issues"},"license":"MIT","readme":"# react-batched-updates\n\n[![npm](https://img.shields.io/npm/v/react-batched-updates.svg)](https://www.npmjs.com/package/react-batched-updates)\n[![Code style: Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/alecdotbiz)\n\n> Cross platform unstable_batchedUpdates\n\n&nbsp;\n\n## Usage\n\n```ts\nimport { batchedUpdates } from 'react-batched-updates'\n\nbatchedUpdates(() => {\n  // Any setState calls are batched, instead of triggering \n  // multiple render passes.\n})\n```\n\nYou should call `setBatchedUpdates` or else `batchedUpdates` will be ineffective. \nExcept for React Native users, where the bundler prefers `cjs/index.native.js`, \na module that requires `react-native` to achieve zero configuration.\n\n```ts\nimport { setBatchedUpdates } from 'react-batched-updates'\nimport { unstable_batchedUpdates } from 'react-dom'\n\n// Both react-native and react-dom have this export.\nsetBatchedUpdates(unstable_batchedUpdates)\n```\n\nIn test environments, you can usually replace `unstable_batchedUpdates` with `act`.\n\n```ts\nimport { setBatchedUpdates } from 'react-batched-updates'\nimport { act } from '@testing-library/react'\n\nsetBatchedUpdates(act)\n```\n","readmeFilename":"README.md"}