-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few suggestions:
- Make sure you can edit todo with double click
- Add loading states: after deleting, on fetching all start, on submitting edited name etc
src/App.tsx
Outdated
getTodos(USER_ID) | ||
.then((data: Todo[]) => setTodos(data as Todo[])) | ||
.catch(() => { | ||
setErrorMessage('Unable to load todos'); | ||
}); |
There was a problem hiding this comment.
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(() => { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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... */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add loader
There was a problem hiding this 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?
@choeqq no no, the task is not yet done |
There was a problem hiding this 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
@choeqq 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅
DEMO LINK