Commit 53eea28
committed
Fix Redux Framework repeater field dependencies not working after page refresh
Implemented efficient event-based dependency evaluation to handle multi-level chains. The issue was in the JavaScript initialization sequence and how Redux evaluates field dependencies on page load. This solution uses native Redux change events and multi-round evaluation to properly restore field visibility for complex dependency chains (A→B→C→D) without performance overhead.
Key improvements:
- Event-based approach using native Redux dependency system
- Multi-round evaluation (max 3 rounds) for deep dependency nesting
- Smart value detection to only trigger on meaningful field values
- Performance optimized to eliminate recursive approach issues
- Handles complex multi-level dependency chains efficiently
- Fully backward compatible with existing functionality1 parent e15369e commit 53eea28
File tree
1 file changed
+57
-0
lines changed- redux-core/inc/extensions/repeater/repeater
1 file changed
+57
-0
lines changedLines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
13 | 58 | | |
14 | 59 | | |
15 | 60 | | |
| |||
78 | 123 | | |
79 | 124 | | |
80 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
81 | 131 | | |
82 | 132 | | |
83 | 133 | | |
| |||
329 | 379 | | |
330 | 380 | | |
331 | 381 | | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
332 | 389 | | |
333 | 390 | | |
334 | 391 | | |
| |||
0 commit comments