You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a Svelte component, I want to subscribe to the media store using the onMount hook. The problem is that the media store isn't available at this time. My current workaround is to call connectedCallback before subscribing to the callback. However, I am wondering if this will have any side effects. Is there another way? I could use a timeout, but I would prefer not to.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi,
In a Svelte component, I want to subscribe to the media store using the onMount hook. The problem is that the media store isn't available at this time. My current workaround is to call
connectedCallbackbefore subscribing to the callback. However, I am wondering if this will have any side effects. Is there another way? I could use a timeout, but I would prefer not to.All reactions