feat: proper chat message styling without rerendering
This commit is contained in:
parent
7150ca87c3
commit
748e154ec4
7 changed files with 74 additions and 25 deletions
|
|
@ -34,3 +34,8 @@ export const useChatState = () => {
|
|||
}
|
||||
return context;
|
||||
};
|
||||
|
||||
export const useCurrentUser = () => {
|
||||
const { state } = useChatState();
|
||||
return state.currentUser;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue