feat(react): update app state when config changes
This commit is contained in:
parent
fb147e7929
commit
32303bebdb
|
@ -52,7 +52,7 @@ export const AppProvider = (props: Props) => {
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
[state]
|
[state, config.options]
|
||||||
)
|
)
|
||||||
|
|
||||||
return <AppContext.Provider value={value}>{children}</AppContext.Provider>
|
return <AppContext.Provider value={value}>{children}</AppContext.Provider>
|
||||||
|
|
Loading…
Reference in New Issue