Closed Bug 2033264 Opened 1 month ago Closed 1 month ago

Weather widget displays "Oops, something went wrong loading this content" on first load when Nova is enabled

Categories

(Firefox :: New Tab Page, defect)

defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: maxx, Assigned: maxx)

References

Details

Attachments

(1 file)

No description provided.

handleOptInLocationSelected (useCallback) was declared after an early return null, causing a hook count mismatch when Weather transitions from uninitialized to initialized. Move it before the guard.

Adds test coverage for the initialization transition in both the Weather widget and the Nova Base layout.

Assignee: nobody → mcrawford
Status: NEW → ASSIGNED
Pushed by mconley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a47bf651b903 https://hg.mozilla.org/integration/autoland/rev/e390d44d6971 Fix React error #310 in Nova Weather widget caused by hook after early return r=home-newtab-reviewers,mconley
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: