Closed emeeks closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/nteract/semiotic/GRqUJgwqHZtmnbWioQZHxb8DSM9z
✅ Preview: Failed
[Deployment for 85b92e4 failed]
LGTM. Tests need a fix, like this one but it can be fixed later.
There are a couple of things that worth discussing, given this change:
elementResizeEvent
prop becomes obsolete, and removing it should probably be reflected in changelog (if the prop has ever been documented)ResizeObserver
has decent browser support but it might not be good enough if Semiotic is considered to be supported by wider range of browsers. Do we explicitly state which browsers are supported, e.g. IE11? The polyfill for ResizeObserver exists, but it would be better to know in advance if we need to mention this explicitly in docs.ResponsiveXXX
version of some XXX
components. Do you think it would be reasonable to figure a way to use composition (e.g. <ResponsiveFrame><NetworkFrame /></ResponsiveFrame
) so users can just wrap a viz piece instead of replacing the target component they use? This would reduce the API surface area, at least. Not sure about other implications right nowLGTM. Tests need a fix, like this one but it can be fixed later.
There are a couple of things that worth discussing, given this change:
elementResizeEvent
prop becomes obsolete, and removing it should probably be reflected in changelog (if the prop has ever been documented)ResizeObserver
has decent browser support but it might not be good enough if Semiotic is considered to be supported by wider range of browsers. Do we explicitly state which browsers are supported, e.g. IE11? The polyfill for ResizeObserver exists, but it would be better to know in advance if we need to mention this explicitly in docs.- Semiotic has
ResponsiveXXX
version of someXXX
components. Do you think it would be reasonable to figure a way to use composition (e.g.<ResponsiveFrame><NetworkFrame /></ResponsiveFrame
) so users can just wrap a viz piece instead of replacing the target component they use? This would reduce the API surface area, at least. Not sure about other implications right now
Tear out element-resize-event per @alexeyraspopov's example gist. Seems to work great.