-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
what i think happened was: previously, TS didnt strongly type the `jsxFragmentFactory` function meaning the minimal jsx runtime could abuse things by passing in the `DocumentFragment` constructor as a sentinel to know when to call `document.createDocumentFragment();`. even though `DocumentFragment` didn't properly match an `ElementFunction`'s signature, we didn't really care bc we just used it as a sentinel. now TS *does* complain about this, so it really wants the function to actually be an element function. it seems like making `Fragment` just ignore props and do `createDocumentFragment` kind of just works? only props that should matter is `props.children`, only im pretty sure `children` still gets passed to `h` anyway afaict?
- Loading branch information
Showing
3 changed files
with
11 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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