Ryan Christian
Ryan Christian
> However, wouldn't it still be great to have an official, documented way to hook into the subscription mechanism? I think _subscribe and _unsubscribe are implementation details and could be...
I wouldn't say "like JSX", as JSX is an extension to JS and contains totally invalid JS syntax, but otherwise sure.
It's very much an attempt to provide a similar experience to authoring JSX in plain JS. A few HTML attributes are encouraged, but in general, the idea is to use...
If you need actual HTML, `__dangerouslySetInnerHTML` might be the solution. The 'X' in JSX is XML. HTM is certainly closer to HTML than standard JSX, but if you want actual...
I made a PR a while back that makes it compatible with 0.26. I'll take a look at upgrading to 0.27 shortly. Don't know if this repo will ever merge...
Closing, I have no plans to figure this out but hopefully the linked context is useful enough (assuming there is something for us to fix)
To copy my reply from the Preact thread: Preact doesn't support using `NaN` in dependency arrays, and it's questionable whether we ever will. Because of this, we throw an error...
It's the same issue as trying to put an object in a dependency array. `useEffect`'s dependency array (and all other dependency arrays) are meant to do a quick & cheap...
> while for NaN it's incorrect Importantly, it's incorrect _if `NaN` is viewed as a valid dependency_. We don't (at the moment) consider it as such. > as number variables...
> You could use a shim as a fallback, `Object.is || function is(...) { ... }` We have tight size constraints. > it can also denote "not applicable" It's much...