Repository navigation
Commit 6dcc04b
Release high-priority list updates after no-op commits (#59295)
Summary:
Pull Request resolved: #59295
`VirtualizedList` can leave its high-priority update flag set when a queued cells updater becomes a no-op, because `componentDidUpdate` does not run. Complete the high-priority attempt using a `setState` callback so the next urgent window update does not wait for the batching timer.
Scope completion to its attempt so an older callback cannot clear newer work scheduled during `componentDidUpdate` or `onEndReached`. Preserve the no-op fast path and the existing once-per-commit scheduling protection.
Changelog:
[General][Fixed] - Avoid delaying urgent `VirtualizedList` rendering after queued no-op updates
Reviewed By: andrewdacenko
Differential Revision: D126635244
fbshipit-source-id: 174d822412f048d556642eb358103ea9a811320f1 parent 871ab0d commit 6dcc04b
2 files changed
Lines changed: 113 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1482 | 1482 | | |
1483 | 1483 | | |
1484 | 1484 | | |
| 1485 | + | |
1485 | 1486 | | |
1486 | 1487 | | |
1487 | 1488 | | |
| |||
2094 | 2095 | | |
2095 | 2096 | | |
2096 | 2097 | | |
2097 | | - | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
2098 | 2104 | | |
2099 | 2105 | | |
2100 | 2106 | | |
| |||
2200 | 2206 | | |
2201 | 2207 | | |
2202 | 2208 | | |
2203 | | - | |
| 2209 | + | |
2204 | 2210 | | |
2205 | 2211 | | |
2206 | 2212 | | |
| |||
2217 | 2223 | | |
2218 | 2224 | | |
2219 | 2225 | | |
2220 | | - | |
2221 | | - | |
2222 | | - | |
| 2226 | + | |
2223 | 2227 | | |
2224 | 2228 | | |
2225 | 2229 | | |
2226 | 2230 | | |
2227 | 2231 | | |
2228 | 2232 | | |
2229 | 2233 | | |
2230 | | - | |
| 2234 | + | |
2231 | 2235 | | |
2232 | 2236 | | |
2233 | 2237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
1698 | 1709 | | |
1699 | 1710 | | |
1700 | 1711 | | |
| |||
2278 | 2289 | | |
2279 | 2290 | | |
2280 | 2291 | | |
| 2292 | + | |
2281 | 2293 | | |
2282 | 2294 | | |
2283 | 2295 | | |
| |||
2286 | 2298 | | |
2287 | 2299 | | |
2288 | 2300 | | |
| 2301 | + | |
2289 | 2302 | | |
2290 | 2303 | | |
2291 | 2304 | | |
| |||
2314 | 2327 | | |
2315 | 2328 | | |
2316 | 2329 | | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
| 2390 | + | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
2317 | 2420 | | |
2318 | 2421 | | |
2319 | 2422 | | |
| |||
0 commit comments