Pitel
08/24/2021, 9:24 AMcreateStore(
reducers,
jsObject(),
compose(
rEnhancer()
) {
if (window.asDynamic().__REDUX_DEVTOOLS_EXTENSION__) {
window.asDynamic().__REDUX_DEVTOOLS_EXTENSION__()
} else {
it
}
}
)
Big Chungus
08/24/2021, 9:28 AMBig Chungus
08/24/2021, 9:29 AMwindow.asDynamic().__REDUX_DEVTOOLS_EXTENSION__ != undefined
Big Chungus
08/24/2021, 9:29 AMPitel
08/24/2021, 9:30 AMif
is ok. When I change the name to some garbage, it gets to the false
branch and my app works. So, it successfully detects the installed extension.Pitel
08/24/2021, 9:31 AMRobert Jaros
08/24/2021, 9:48 AMPitel
08/24/2021, 11:11 AMif (window.asDynamic().__REDUX_DEVTOOLS_EXTENSION__) {
compose(rEnhancer(), window.asDynamic().__REDUX_DEVTOOLS_EXTENSION__())
} else {
rEnhancer()
}