Fix hot reload issues coming from react components exported with additional variables https://twitter.com/benschac/status/1521867664267821063?s=20&t=hKhwNWhJqqDsPU5nB2Qexw
Details
Details
no functional change. when editing chat-list.react.js hot-reload will not push the engineer back to the inbox.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Makes sense to pull out the helper function.
Is there a reason we call this file chat-message-constants? I might be missing something but it doesn't look like we're keeping constant values in it?
Maybe something like chat-message-utils?
Comment Actions
I just named it that because that's what I named the other files that had removed additional exports from (that broke hot reload). I was thinking of just moving all of the constants into one utils file now that there are a couple of different constants files.
Comment Actions
Addressed @atul's comment here: https://phabricator.ashoat.com/D3996 moved chatMessageItemKey into the util chat/util file.