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

importing from previous task, this one not started #844

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

PawelP2001
Copy link

Copy link

@choeqq choeqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few suggestions:

  1. Make sure you can edit todo with double click
  2. Add loading states: after deleting, on fetching all start, on submitting edited name etc

src/App.tsx Outdated
Comment on lines 44 to 48
getTodos(USER_ID)
.then((data: Todo[]) => setTodos(data as Todo[]))
.catch(() => {
setErrorMessage('Unable to load todos');
});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loading state

src/App.tsx Outdated

useEffect(() => {
if (errorMessage) {
setTimeout(() => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ALWAYS make sure to cleanup your timeouts in effects

src/api/todos.ts Outdated
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add patch method

))}
{isLoading && (
<div className="loader" data-cy="Loader">
{/* Loading... */}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add loader

Copy link

@choeqq choeqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am still not able to edit todo and toggle each todo, have you deployed your page correctly?

@PawelP2001
Copy link
Author

@choeqq no no, the task is not yet done

Copy link

@choeqq choeqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, please tag me when the task will be completed

@PawelP2001
Copy link
Author

@choeqq 🙏

@PawelP2001 PawelP2001 requested a review from choeqq October 9, 2023 00:24
Copy link

@choeqq choeqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅

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