Closed tarsisexistence closed 4 months ago
Anything I can do to help merge? Could use this feature right now!
@dkaoster it will be applied to svelte and vue by default with other props, because of restProps
svelte
const { videoPercentage, ...restProps } = $$props;
vue
const { videoPercentage, ...restProps } = this.$attrs;
So, probably we can merge it, right?
It might solve https://github.com/dkaoster/scrolly-video/issues/46
Rewrote
decodeVideo
a little bit for better readability (more linear reading with early return and async-await)Btw, you do catch first because sometimes it can just produce the empty array by default without
catch
, right? As I understand, you putcatch
first to "normalize" an empty array and catch both cases later in the lastthen
. Because I wanted to move catch to the bottom but then I understood that it might be a normalization.