Commit 4b1a9dd
revert: move promise resolution back to try block
Moving the promise resolution from finally block back to try block.
This ensures promises are only resolved on successful loader completion,
not on errors or redirects.
Resolving on redirect was incorrect because we're navigating away from
the route, so head() re-execution for the old route doesn't make sense.
The null check is kept as a safety measure since this code still runs
in an async callback where navigation could theoretically change.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 2687842 commit 4b1a9dd
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
839 | 839 | | |
840 | 840 | | |
841 | 841 | | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | 842 | | |
851 | 843 | | |
852 | 844 | | |
853 | 845 | | |
854 | 846 | | |
855 | 847 | | |
856 | 848 | | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
857 | 853 | | |
858 | 854 | | |
859 | 855 | | |
| |||
0 commit comments