Skip to content

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
@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