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
Hi guys,
I have an application that uses the package. Mitt works perfectly well! It is a great tool so thank you for the implementation. But on the first-page load, the event is not activating. Is there any reason for this? Could someone clarify it for me why? My app uses Laravel, InertiaJS, and Vue3 with Ziggy routes. If there is no full page reload and I use the InertiaJS link function that mimics the one-page app behavior, it works fine. Is this an expected behavior? The code looks like this:
<script setup> if(computedBoolean===true) { let data = { status: true, }; emitter.emit("cartItemCheck", data); } </script>
Anyway, thanks for the answer if you take the time!
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
-
Hi guys,
I have an application that uses the package. Mitt works perfectly well! It is a great tool so thank you for the implementation. But on the first-page load, the event is not activating. Is there any reason for this? Could someone clarify it for me why? My app uses Laravel, InertiaJS, and Vue3 with Ziggy routes. If there is no full page reload and I use the InertiaJS link function that mimics the one-page app behavior, it works fine. Is this an expected behavior? The code looks like this:
<script setup>
if(computedBoolean===true)
{
let data = {
status: true,
};
emitter.emit("cartItemCheck", data);
}
</script>
Anyway, thanks for the answer if you take the time!
Thanks,
Adam
Beta Was this translation helpful? Give feedback.
All reactions