So parent WC can setup a `<Theme.Provider>` and a child WC `useContext`
So parent WC can setup a `<Theme.Provider>` and a child WC `useContext`
For most folks/apps using bundlers, this has no effect whatsoever. Unbundle, erasable-only TS syntax is exceptionally niche but can be useful.
For most folks/apps using bundlers, this has no effect whatsoever. Unbundle, erasable-only TS syntax is exceptionally niche but can be useful.
This isn’t “burdening end users with types” anymore than forgoing build tooling is burdening users with comments; and, at the end of the day, it’s a drop in the bucket compared to analytics scripts.
This isn’t “burdening end users with types” anymore than forgoing build tooling is burdening users with comments; and, at the end of the day, it’s a drop in the bucket compared to analytics scripts.
Copy/pasting typed code into the browser console to test something will be monumentally useful though, yes. It's a PITA to strip
Copy/pasting typed code into the browser console to test something will be monumentally useful though, yes. It's a PITA to strip
Bundling your runtime only makes sense for standalone widgets where you're reasonably certain the UI lib won't be duplicated.
Bundling your runtime only makes sense for standalone widgets where you're reasonably certain the UI lib won't be duplicated.
I personally prefer JSDoc comments over TS-style types and so have little interest in this moving forward or dying, but saying it changes nothing is demonstrably untrue.
I personally prefer JSDoc comments over TS-style types and so have little interest in this moving forward or dying, but saying it changes nothing is demonstrably untrue.
I get it though, tricky thing to try to polyfill & I'm grateful for the attempt at least.
I get it though, tricky thing to try to polyfill & I'm grateful for the attempt at least.
I gotta proactively call out tiny oddities as by tomorrow I’ll have completely tossed out the context if someone else raises an eyebrow at them
I gotta proactively call out tiny oddities as by tomorrow I’ll have completely tossed out the context if someone else raises an eyebrow at them
But yeah, maybe a bit too hopeful on my part to think browsers that still haven't added a global toggle to their settings menus would add per-site toggles 😅
But yeah, maybe a bit too hopeful on my part to think browsers that still haven't added a global toggle to their settings menus would add per-site toggles 😅
github.com/WICG/web-pre...
github.com/WICG/web-pre...
Really though, that’s completely and easily solved with a `max-width` + `margin: auto`. I personally appreciate a fluid layout so long as it’s not edge-to-edge on larger screens.
Really though, that’s completely and easily solved with a `max-width` + `margin: auto`. I personally appreciate a fluid layout so long as it’s not edge-to-edge on larger screens.