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
The listener for 'edit-message' only has the two lines that follow //emit... Calling emit instead of the two lines results in an error downstream because state.autopilot.current isn't set yet.
The text was updated successfully, but these errors were encountered:
I think it's because I'm loading this view by refreshing the page. App load behavior seems to be a bit different than just swapping out a view. Logs say there's no listener but it's still running the listener...three times, in fact. Maybe my app structure isn't setup quite right for this scenario.
emitter.on('DOMContentLoaded', function () {
state.app.DOMContentLoaded = true
view
if (state.app.DOMContentLoaded) {
do everything as normal
} else {
return html``
}
I'm not sure why the view is rendering before DOMContentLoaded. Only have to do this on pages where the query param affects what's being displayed ..the route is .../something/:id
I'm probably misunderstanding something here, but I have a timing issue that sure seems async when calling emitter.emit.
The listener for 'edit-message' only has the two lines that follow //emit... Calling emit instead of the two lines results in an error downstream because state.autopilot.current isn't set yet.
The text was updated successfully, but these errors were encountered: