Commit dd7ce54
fix(navigationview): consume reuse entries + explicit Where (CR feedback)
Address PR #454 review:
- Slow-path rebuild now consumes the reuse map entry (Dictionary.Remove)
when a container is reused, so duplicate sibling keys (duplicate Tags, or
duplicate Content when no Tag is set) fall through to a freshly created
container instead of adding the same WinUI item to the collection twice.
- Make the snapshot loops' filtering explicit with .Where()/.OfType().
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 21a1a4a commit dd7ce54
2 files changed
Lines changed: 15 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1873 | 1873 | | |
1874 | 1874 | | |
1875 | 1875 | | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
| 1876 | + | |
| 1877 | + | |
1879 | 1878 | | |
1880 | 1879 | | |
1881 | 1880 | | |
1882 | | - | |
1883 | | - | |
1884 | | - | |
| 1881 | + | |
| 1882 | + | |
1885 | 1883 | | |
1886 | 1884 | | |
1887 | 1885 | | |
| |||
1892 | 1890 | | |
1893 | 1891 | | |
1894 | 1892 | | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
1895 | 1896 | | |
1896 | | - | |
| 1897 | + | |
1897 | 1898 | | |
1898 | 1899 | | |
1899 | 1900 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 178 | + | |
| 179 | + | |
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
184 | | - | |
185 | | - | |
186 | | - | |
| 183 | + | |
| 184 | + | |
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
| |||
194 | 192 | | |
195 | 193 | | |
196 | 194 | | |
| 195 | + | |
| 196 | + | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments