Sha256: 3abb9c9fad57b8200f41efdfc6c63fc68b462ce2325be5fa61b3554cd00504a5

Contents?: true

Size: 767 Bytes

Versions: 13

Compression:

Stored size: 767 Bytes

Contents

import{options as t}from"preact";function o(){return t.t=t.debounceRendering,t.debounceRendering=o=>t.o=o,()=>t.o&&t.o()}const r=t=>null!=t&&"function"==typeof t.then;let e=0;function n(n){if(++e>1){const t=n();return r(t)?t.then(()=>{--e}):(--e,Promise.resolve())}const i=t.requestAnimationFrame,f=o();let u,l;t.requestAnimationFrame=t=>u=t;const s=()=>{try{for(f();u;)l=u,u=null,l(),f();c()}catch(t){d||(d=t)}t.requestAnimationFrame=i,--e};let d,h;try{h=n()}catch(t){d=t}if(r(h))return h.then(s,t=>{throw s(),t});if(s(),d)throw d;return Promise.resolve()}function c(){t.o&&(t.o(),delete t.o),void 0!==t.t?(t.debounceRendering=t.t,delete t.t):t.debounceRendering=void 0}export{n as act,o as setupRerender,c as teardown};
//# sourceMappingURL=testUtils.modern.js.map

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
isomorfeus-preact-10.6.2 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.6.1 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.6.0 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.11 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.10 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.9 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.8 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.7 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.6 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.5 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.4 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.3 node_modules/preact/test-utils/dist/testUtils.modern.js
isomorfeus-preact-10.5.2 node_modules/preact/test-utils/dist/testUtils.modern.js