Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier for Ryan to find things #37

Open
devagrawal09 opened this issue Oct 18, 2024 · 3 comments
Open

Make it easier for Ryan to find things #37

devagrawal09 opened this issue Oct 18, 2024 · 3 comments

Comments

@devagrawal09
Copy link
Contributor

Ryan pulls up the code quite a bit on stream and spends a decent amount of time looking for whatever he wants to show

@brenelz
Copy link
Contributor

brenelz commented Oct 24, 2024

Do you have ideas how we could arrange things better? Maybe in the readme have links to different concepts?

@qingzhoufeihu
Copy link

qingzhoufeihu commented Nov 24, 2024

const deleteBoard = action(async (boardId: number) => {
  "use server";
  const userId = await getAuthUser();

  await db.board.delete({
    where: { id: boardId, accountId: userId },
  });
}, "delete-board");

<form
  class="absolute top-2.5 right-2.5"
  action={deleteBoard.with(board.id)}
  method="post"
>
  <button
    aria-label="Delete board"
    class="btn btn-ghost btn-sm btn-circle"
    type="submit"
  >
    <BsTrash />
  </button>
</form>

Do you have to use the form submission method?

@qingzhoufeihu
Copy link

I can feel a significant lag when jumping through the home page icon and panel items, and I don't know what the reason is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants