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

ActionLock System #141

Open
Austin2Shih opened this issue Oct 29, 2024 · 0 comments
Open

ActionLock System #141

Austin2Shih opened this issue Oct 29, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Austin2Shih
Copy link
Contributor

Austin2Shih commented Oct 29, 2024

Overview

When users perform actions such as creating, deleting, or updating content, it may take some time. We want to do two things:

  1. Pause user interactions (don't want users moving things around while state is updating in the backend)
  2. Keep user up to date with progress for their action. Ideally, we want to allow the frontend to provide a loading message (as JSX) and also to update the loading message if progress changes.

Suggestions

Create an ActionLockContext and a useActionLockContext hook so that any client component is able to access this state. Make it so that when the ActionLockContext is in a locked state, a modal pops up with the ActionLock data.

@Austin2Shih Austin2Shih added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants