Commit a20f0bf
authored
RedisStateManager.get_state: return the correct state class (#6001)
* RedisStateManager.get_state: return the correct state class
Save the originally requested state class as `requested_state_cls` so a
subsequent loop variable that was also called `state_cls` doesn't interfere
with returning the correct state at the end of the function.
* Update _potentially_dirty_states when adding explicit dependency
Ensure that fetching a dependency state causes dependent states to also be
fetched.1 parent cb262b6 commit a20f0bf
File tree
3 files changed
+50
-10
lines changed- reflex
- istate/manager
- vars
- tests/units
3 files changed
+50
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2488 | 2488 | | |
2489 | 2489 | | |
2490 | 2490 | | |
2491 | | - | |
| 2491 | + | |
2492 | 2492 | | |
2493 | | - | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
2494 | 2497 | | |
2495 | 2498 | | |
2496 | 2499 | | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
2497 | 2503 | | |
2498 | 2504 | | |
2499 | 2505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
310 | | - | |
| 309 | + | |
| 310 | + | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| |||
4304 | 4304 | | |
4305 | 4305 | | |
4306 | 4306 | | |
| 4307 | + | |
| 4308 | + | |
4307 | 4309 | | |
4308 | 4310 | | |
4309 | 4311 | | |
| |||
4329 | 4331 | | |
4330 | 4332 | | |
4331 | 4333 | | |
| 4334 | + | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
| 4340 | + | |
| 4341 | + | |
| 4342 | + | |
| 4343 | + | |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
| 4359 | + | |
| 4360 | + | |
| 4361 | + | |
| 4362 | + | |
| 4363 | + | |
| 4364 | + | |
| 4365 | + | |
0 commit comments