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

chore: use @lit/task library to manage async tasks for fetching the banner from the auction #42

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

PabloReszczynski
Copy link
Collaborator

@PabloReszczynski PabloReszczynski commented Jun 28, 2024

Instead of managing the state ourselves, we use the Task functionality provided by lit to manage loading, error and ready state of fetching data.

You can think of this as comparing useEffect with swc

@PabloReszczynski PabloReszczynski merged commit b5f956d into main Jun 28, 2024
4 checks passed
@PabloReszczynski PabloReszczynski deleted the chore/p/use-async-task branch June 28, 2024 16:27
anonvt pushed a commit that referenced this pull request Jul 1, 2024
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