This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it("should clean up signals after unmount with multiple suspense boundaries", async () => { | |
| let watchedCallCount = 0; | |
| let unwatchedCallCount = 0; | |
| // Create a signal with watched/unwatched callbacks to track cleanup | |
| const trackedSignal = signal(0, { | |
| name: "trackedSignal", | |
| watched: function () { | |
| watchedCallCount++; | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules | |
| package-lock.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare namespace NotReact { | |
| type JSXElementConstructor<P> = (props: P) => Element | null; | |
| type JSXType<P> = "div" | JSXElementConstructor<P>; | |
| interface Element<P = any, T extends JSXType<any> = JSXType<P>> { | |
| type: T; | |
| props: P; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node_modules | |
| lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions | |
| // - XState (all XState exports) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Run `"javascript:$(terser .\preact-checker.js)" > .\preact-checker.min.js` to make it a bookmarklet | |
| (function () { | |
| var expando = | |
| typeof Symbol != "undefined" && Symbol.for && Symbol.for("preactattr"); | |
| function isMatch(node) { | |
| if ("__k" in node && "props" in node.__k && "type" in node.__k) { | |
| return true; | |
| } | |
| return ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var minHoldTime = 2500; // milliseconds | |
| var checkDelay = 500 // milliseconds, defaults to 500ms or minHoldTime/2 if minHoldTime < 500 | |
| var minWaitTime = 1; // seconds | |
| var maxWaitTime = 3; // seconds | |
| var waitTimeout = 10; // seconds | |
| // FYI, if using full XState, could use the 'invoke' property to call functions | |
| // that return Promises that resolve or fail, and change state based on that. | |
| // Since this machine generally has two transitions out of the interesting | |
| // states, we could model the lock checking as success/failure to signal which |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Machine({ | |
| id: 'Lock', | |
| initial: 'acquiring', | |
| context: { | |
| held_time: 0 // Cumulative time the lock has been held | |
| }, | |
| states: { | |
| // Read lock and either keep waiting or write & hold | |
| acquiring: { | |
| entry() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ######################################### | |
| # | |
| # List of Native functions https://github.com/v8/v8/blob/2685658cc0cce01c47a43049bd5394594ccb7400/src/runtime/runtime.h#L1 | |
| # | |
| ######################################### | |
| SSE3=1 SSSE3=1 SSE4_1=1 SSE4_2=1 SAHF=1 AVX=1 FMA3=1 BMI1=1 BMI2=1 LZCNT=1 POPCNT=1 ATOM=0 | |
| Synopsis: | |
| shell [options] [--shell] [<file>...] |
NewerOlder