An effect re-runs when any dependency changed (Object.is). Input: each line is a render's dependency array as JSON. Print run or skip per render (first render always runs).
Input: one deps array per line. Output: run/skip per line.
Your program reads from stdin and prints to stdout.
Example 1
Input: [1,"a"] [1,"a"] [2,"a"]
Output: run skip run
Hints
An effect re-runs when any dependency changed (Object.is). Input: each line is a render's dependency array as JSON. Print run or skip per render (first render always runs).
Input: one deps array per line. Output: run/skip per line.
Your program reads from stdin and prints to stdout.
Example 1
Input: [1,"a"] [1,"a"] [2,"a"]
Output: run skip run
Hints