Page MenuHomePhabricator

[web] Remove userAgent from Redux state
ClosedPublic

Authored by ashoat on Dec 21 2022, 8:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 8:09 AM
Unknown Object (File)
Thu, Apr 25, 8:09 AM
Unknown Object (File)
Thu, Apr 25, 8:09 AM
Unknown Object (File)
Thu, Apr 25, 8:09 AM
Unknown Object (File)
Thu, Apr 25, 8:09 AM
Unknown Object (File)
Apr 8 2024, 5:12 AM
Unknown Object (File)
Mar 12 2024, 1:02 AM
Unknown Object (File)
Mar 6 2024, 10:24 AM
Subscribers
None

Details

Summary

Same as the previous diff, basically. We should've had this in a React context... basically wanted server code to know what the user agent was while doing SSR. Now we don't do SSR, and we can just call detectBrowser() without needing to pass anything in.

Test Plan

Flow

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Dec 21 2022, 8:35 PM
Harbormaster failed remote builds in B14655: Diff 19991!
tomek added inline comments.
web/chat/chat-message-list.react.js
280–287 ↗(On Diff #19999)

Can we compute this outside the component and avoid using memo?

This revision is now accepted and ready to land.Dec 22 2022, 8:29 AM

No point using props

web/chat/chat-message-list.react.js
280–287 ↗(On Diff #19999)

Good call

This revision was automatically updated to reflect the committed changes.