mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
w: upgrade deps
This commit is contained in:
1 parent
6567c739b6
commit
67ec4cea0c
26 files changed
+120
-149
No files matched your search
@@ -2,7 +2,7 @@ import { Action, AnyAction, Reducer } from 'redux';
|
||||
|
||||
export default async function loadReactRedux<S, A extends Action = AnyAction>(storeReducer: Reducer<S, A>) {
|
||||
const React = await import('react');
|
||||
const { render, unmountComponentAtNode } = await import('react-dom');
|
||||
const { createRoot } = await import('react-dom/client');
|
||||
const { Provider } = await import('react-redux');
|
||||
const { createStore, applyMiddleware } = await import('redux');
|
||||
const { default: reduxThunk } = await import('redux-thunk');
|
||||
@@ -24,8 +24,7 @@ export default async function loadReactRedux<S, A extends Action = AnyAction>(st
|
||||
|
||||
return {
|
||||
React,
|
||||
render,
|
||||
unmountComponentAtNode,
|
||||
createRoot,
|
||||
Provider,
|
||||
store,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user