Commit d1d655e
Move empty-check condition inside useEffect body
Move the reportLastReadTime empty check from the dependency array
into the effect body, so it skips the update when lastReadTime is
empty rather than using a derived dependency value.
Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>1 parent aaecf4c commit d1d655e
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
262 | 267 | | |
263 | 268 | | |
264 | 269 | | |
265 | | - | |
| 270 | + | |
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
| |||
0 commit comments