Crashes Without View
See original GitHub issueBelieve 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:
- Created 6 years ago
- Comments:19 (13 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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 arender
event either.EDIT: The new
patch
event won’t fire either, evidently! 😄@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.
Why do we have to render anything at all? Neither
root
norview
is specified so the most sane thing is to render nothing.