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.

fastboot.isFastBoot should be false in fallback mode

See original GitHub issue

I might be wrong because my code sandbox is a bit messy, but when falling back to non-fastboot mode (e.g. on error), it seems that fastboot.isFastBoot is still true.

This is undesirable, e.g. when using fastboot.isFastboot for switching between fastboot.request.headers and window.navigator. In fallback, the wrong code gets executed because it thinks it’s still running in Fastboot.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

tomdalecommented, Dec 15, 2016

Wow, sorry for the bad footgun here @Redsandro. Let’s make this a static property to avoid trolling folks similarly in the future. Will close this issue and track in #303.

danmcclaincommented, Dec 14, 2016

The issue is you need to call this.get('fastboot.isFastBoot'), when you call this.get('fastboot').isFastBoot, it is returning the computed property, not the final value.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moving Fastboot to Userspace
Android 10 and higher supports resizable partitions by relocating the fastboot implementation from bootloader to userspace.
Read more >
Can't boot TWRP via "fastboot boot" after upgrade (OOS boots ...
Hi, TL;DR: Bootloader unlocked. "fastboot boot twrp.img" worked fine until I upgraded to OxygenOS 5.1.4 (from 5.0.4). Now "fastboot boot ...
Read more >
Can't boot TWRP via "fastboot boot" after upgrade (OOS ...
Unrooted, of course. I went into fastboot mode (the black screen with white and red letters), and tried loading TWRP with "flashboot boot...
Read more >
Bootloading with GRUB2
EFI , which will, in turn, invoke fallback.efi . If you already have incorrect boot entries, you'll either need to delete them or...
Read more >
Disable Windows FAST BOOT / FAST START & Why You Should
If Windows 10 fast startup is not something you want to be enabled, you can disable it with relative ease.Fast startup or FAST...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found