Implement sending read receipt in new pagination
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
50db137dea
commit
c1e3645d57
9 changed files with 244 additions and 132 deletions
|
|
@ -4,5 +4,7 @@ import { useState } from 'react';
|
|||
export function useForceUpdate() {
|
||||
const [data, setData] = useState(null);
|
||||
|
||||
return [data, () => setData({})];
|
||||
return [data, function forceUpdateHook() {
|
||||
setData({});
|
||||
}];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue