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

Integrate useTransition Hook for Optimized State Transitions #157

Merged
merged 10 commits into from
Dec 31, 2024

Conversation

smilkuri
Copy link
Contributor

@smilkuri smilkuri commented Dec 27, 2024

Issue

Refs:

https://react.dev/reference/react/useTransition
https://react.dev/blog/2024/12/05/react-19

Description

This PR introduces the use of React's useTransition hook to manage asynchronous operations more effectively.
Changes include:

  • Replaced manual pending state management useState with useTransition in components like list components, button handlers, etc.
  • Leveraged useTransition to handle async transitions, including pending states and error handling.

How was this change tested?

Local

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@smilkuri smilkuri requested a review from a team as a code owner December 27, 2024 20:32
packages/frontend/src/content/ShowNote.tsx Outdated Show resolved Hide resolved
packages/frontend/src/content/ShowNote.tsx Outdated Show resolved Hide resolved
packages/frontend/src/content/DeleteNoteButton.tsx Outdated Show resolved Hide resolved
packages/frontend/src/content/ShowNote.tsx Outdated Show resolved Hide resolved
packages/frontend/src/content/ShowNote.tsx Outdated Show resolved Hide resolved
packages/frontend/src/content/ShowNote.tsx Outdated Show resolved Hide resolved
@smilkuri smilkuri merged commit 672ced4 into aws-samples:main Dec 31, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants