fastboot.isFastBoot should be false in fallback mode
See original GitHub issueI 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:
- Created 7 years ago
- Comments:22 (12 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
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.
The issue is you need to call
this.get('fastboot.isFastBoot')
, when you callthis.get('fastboot').isFastBoot
, it is returning the computed property, not the final value.