Jason Miller
Jason Miller
Previously `FunctionComponent` was only typed as returning `VNode | null`, but Preact supports returning Arrays as well as any VDOM text primitive (boolean, etc). Class component render methods were typed...
This mostly affects useReducer, where dispatching from within the reducer will drop the resulting state update: https://codepen.io/developit/pen/YzEOWGx?editors=0010
- Always pass parameter values to internal functions - Rename `internal.rerender()` to `internal.render()` (gzip optimizations, since "render" already appears in source) - Turn `enqueueRender()` into the implementation of `internal.render()` -...
This fixes #3233 by making error bubbling/propagation stop at the first `componentDidCatch` boundary, regardless of whether calling the method happens to setState (or otherwise mark its component as dirty). This...
This is an addendum to #3327 that changes how comment/cdata/doctype/etc nodes are handled during hydration. Instead of skipping over those nodes when performing matching, they are excluded from `exccessDomChildren` entirely....
This uses `ParentNode.replaceChild()` in the case where insertion is happening at the last index in a list, since it is not possible for an old DOM node to be left...
This only matters for the generated CommonJS bundle, which was previously doing a loop that caused Node's CJS named export inference to fail.
This changes to using stringified style application, which seems to be the main difference between rendering performance in the spiral demo.