WHYYY
This commit is contained in:
parent
719b501386
commit
fa1c0a9f8d
1 changed files with 13 additions and 1 deletions
|
@ -38,7 +38,7 @@ export const loader: LoaderFunction = async (args) => {
|
|||
return {};
|
||||
};
|
||||
|
||||
export default function Room() {
|
||||
function RoomContent() {
|
||||
const { user } = useUser();
|
||||
const params = useParams();
|
||||
const roomId = params.roomId;
|
||||
|
@ -477,3 +477,15 @@ export default function Room() {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default function Room() {
|
||||
const client = new Ably.Realtime.Promise({
|
||||
authUrl: "/api/ably",
|
||||
});
|
||||
|
||||
return (
|
||||
<AblyProvider client={client}>
|
||||
<RoomContent />
|
||||
</AblyProvider>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue