重构应用程序架构,添加 OpenIM SDK 初始化和引导逻辑
This commit is contained in:
9
providers/app-bootstrap-provider.tsx
Normal file
9
providers/app-bootstrap-provider.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { PropsWithChildren } from "react";
|
||||
|
||||
import { useOpenIMBootstrap } from "@/features/im/hooks/use-openim-bootstrap";
|
||||
|
||||
export function AppBootstrapProvider({ children }: PropsWithChildren) {
|
||||
useOpenIMBootstrap();
|
||||
|
||||
return children;
|
||||
}
|
||||
Reference in New Issue
Block a user