Reimplemented rooms with live update
This commit is contained in:
1 parent
347f4b0999
commit
94c544b161
7 files changed
+25
-23
No files matched your search
@@ -5,7 +5,7 @@ import { addMemberAction, type AddMemberState } from "./actions";
|
||||
|
||||
const initialState: AddMemberState = null;
|
||||
|
||||
export function AddMemberForm({ roomId }: { roomId: string }) {
|
||||
export function AddMemberForm({ roomId }: Readonly<{ roomId: string }>) {
|
||||
const boundAction = addMemberAction.bind(null, roomId);
|
||||
const [state, action, pending] = useActionState(boundAction, initialState);
|
||||
|
||||
|
||||
Reference in new issue
Block a user