Pier Paolo Ramon
Pier Paolo Ramon
Looks like the implementation of `TunnelPlaceholder` is treating render props as if they were full fledged components [by using `React.creatElement`](https://github.com/javivelasco/react-tunnels/blob/5d636e3533777aee5d68094db3f1fd29ccd1cf10/src/TunnelPlaceholder.js#L39-L44). While this is cool because it let you expose a...
When `replaceNonInternal` is called on components that have **non internal** properties with **computed defaults**, those properties are re-computed. ### Test case Given this component: ```js // MyButton.es.js import templates from...
Currently with `registerCustomEvent` you can define a rich alias for a “base event” (`originalEvent`). A finer API should be added so that an `attach` and a `detach` methods should be...
``` js let counter = 0; class Test1 { static get FOO() { return counter++; } } class Test2 extends Test1 { static get FOO() { return counter++; } }...
Because accessing a property in a callback could reference different values that the ones are available at function definition, we currently do _not_ add property accesses to the inputs array....
Sometimes a single reference should be kept out of the inputs array, we could allow the user to specify it. A proposed syntax is: ``` import { stale, useAutoMemo }...
If someone writes a `useCoolMemo` hook which has a similar signature of `useMemo`, there should be a generic macro which gives access to the inputs array. A proposed syntax is:...
In the following example the value of `values` should never change, and we _should_ be able to treat it as static: ```js const values = React.useMemo(() => new Array(12), []);...
Since this is a macro, there’s little to no way to trace _which_ references are placed in the inputs array. An initial proposal syntax could be this: ```js function MyComponent()...
In the following example the current implementation outputs very useless code for `useAutoMemo` and `useAutoCallback`, and potentially un-performant code for effects: ```js function MyComponent({ prop }) { const config =...