Open leekahung opened 8 months ago
With React Query in place, we could start migrating some of the utility functions we've previously built to a custom hook.
Move some of the functions from session-helper, session-core, or MessageContext over to a new hook called useMessageList.
session-helper
session-core
MessageContext
useMessageList
Depending on how heavy the refactoring load would be, would likely implement this in parts.
Describe the Current Behavior/Feature:
With React Query in place, we could start migrating some of the utility functions we've previously built to a custom hook.
Proposed Implementation (if applicable):
Move some of the functions from
session-helper
,session-core
, orMessageContext
over to a new hook calleduseMessageList
.Depending on how heavy the refactoring load would be, would likely implement this in parts.