react-native-windows
react-native-windows copied to clipboard
Defer the initialization of accessibility providers
https://github.com/microsoft/react-native-windows/blob/aa48a7a281bfac19101c151949a252d77b953dee/vnext/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp#L34-L44
If the UIA agent does not request these patterns we shouldn't create these providers. But we are trying to create these providers in the constructor itself.
Changes required:
Move the above part of code to here, where we can create the providers, only if the UIA request for it.
https://github.com/microsoft/react-native-windows/blob/aa48a7a281bfac19101c151949a252d77b953dee/vnext/Microsoft.ReactNative/Fabric/Composition/CompositionDynamicAutomationProvider.cpp#L282-L295