question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashes Without View

See original GitHub issue

Believe it or not, one instance of hyperapp in one of my projects isn’t using any view whatsoever. So here I am submitting a bug report to a frontend library that it crashes when no view is given…

Broken Code ▶️

app({
    state: 'Example',
    events: { loaded: () => console.info('Loaded!') }
})

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
jorgebucarancommented, Aug 2, 2017

@dodekeract Good news! I’ll add support for view-less apps in the next release. 👍

I’ll implement this simply by not calling the render function. An app without a view will not fire a render event either.

EDIT: The new patch event won’t fire either, evidently! 😄

3reactions
FlorianWendelborncommented, Jul 30, 2017

@jbucaran Thanks for assuming I don’t know what I’m doing, but I really don’t want a mixin instead. The hyperapp instance I’m talking about is running inside an iframe to take advantage of cross origin iframe policies (and CORS) to protect user privacy. It doesn’t show anything and only communicates with an API. However, since it shares a lot of code with other iframes running in the same tab I need to take advantage of the rest of hyperapp’s architecture (state, actions, events) to re-use code.

If the answer was (2) then we could simply add a default view of () => “”. — @jbucaran

Why do we have to render anything at all? Neither root nor view is specified so the most sane thing is to render nothing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS 2019 crashes without displaying any error after opening ...
I watched in task manager that some “Windows reporting problem” shows up but I don't see it in my screen and then after...
Read more >
Detect and diagnose crashes - Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >
AppCrashView - View application crashes (.wer files ... - NirSoft
Displays the details of all application crashes occured in your system.
Read more >
Game crashes or closes unexpectedly - Microsoft Support
Explains what to do if a Microsoft game crashes or closes unexpectedly when you try to start the game.
Read more >
Why does my heroku app crash without showing any error?
To see more logs, in your application dashboard click "More" in the upper right hand corner, then click "View Logs". This should show...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found