12 lines
278 B
TypeScript
12 lines
278 B
TypeScript
import { useEffect } from "react";
|
|
|
|
import { bootstrapOpenIM } from "@/features/im/openim-bootstrap";
|
|
|
|
export function useOpenIMBootstrap() {
|
|
useEffect(() => {
|
|
bootstrapOpenIM().catch((error) => {
|
|
console.error("OpenIM bootstrap failed", error);
|
|
});
|
|
}, []);
|
|
}
|