File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 63
63
)
64
64
"""Use the index of elements/components amongst their siblings as the default key.
65
65
66
- In a future release this flag's default value will be set to true, and after that, this
67
- flag will be removed entirely and the indices will always be the default key.
66
+ The flag's default value is set to true. To return to legacy behavior set
67
+ ``IDOM_FEATURE_INDEX_AS_DEFAULT_KEY=0``. In a future release, this flag will be removed
68
+ entirely and the indices will always be the default key.
68
69
69
- For more information on changes to this feature flag see: https://github.com/idom-team/idom/issues/351
70
+ For more information on changes to this feature flag see:
71
+ https://github.com/idom-team/idom/issues/351
70
72
"""
Original file line number Diff line number Diff line change @@ -698,10 +698,10 @@ def _process_child_type_and_key(
698
698
699
699
if IDOM_FEATURE_INDEX_AS_DEFAULT_KEY .current :
700
700
701
- def _default_key (index : int ) -> Any : # pragma: no cover
701
+ def _default_key (index : int ) -> Any :
702
702
return index
703
703
704
704
else :
705
705
706
- def _default_key (index : int ) -> Any :
706
+ def _default_key (index : int ) -> Any : # pragma: no cover
707
707
return object ()
You can’t perform that action at this time.
0 commit comments