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, Nov 7, 2:10 AM
Unknown Object (File)
Thu, Nov 7, 2:10 AM
Unknown Object (File)
Thu, Nov 7, 2:10 AM
Unknown Object (File)
Thu, Nov 7, 2:10 AM
Unknown Object (File)
Thu, Nov 7, 2:10 AM
Unknown Object (File)
Thu, Nov 7, 2:10 AM
Unknown Object (File)
Thu, Nov 7, 2:09 AM
Unknown Object (File)
Mon, Nov 4, 3:18 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
Branch
ashoat/webssr
Lint
No Lint Coverage
Unit
No Test Coverage

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.