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, Dec 5, 7:10 PM
Unknown Object (File)
Wed, Dec 4, 12:10 PM
Unknown Object (File)
Wed, Dec 4, 12:08 PM
Unknown Object (File)
Wed, Dec 4, 12:07 PM
Unknown Object (File)
Wed, Dec 4, 12:07 PM
Unknown Object (File)
Wed, Dec 4, 12:06 PM
Unknown Object (File)
Wed, Dec 4, 12:06 PM
Unknown Object (File)
Wed, Dec 4, 11:46 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.