Skip to content

Conversation

@naufalyukafi
Copy link
Collaborator

vidio demo bisa dilihat pada link berikut: https://streamable.com/9fogks

Copy link
Collaborator

@mnindrazaka mnindrazaka left a comment

Choose a reason for hiding this comment

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

ada beberapa suggestion yang perlu dipertimbangkan. Sisanya tinggal ditambahkan test dan mekanisme debounce

Comment on lines 80 to 82
onChange={item =>
projectSyncContext.setSearchByName(item.target.value)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

kyknya lebih baik kalau dibuatin event handler function di componentnya, misal handleSearchChange dan dibungkus dengan React.useCallback. Sehingga setiap kali rerender tidak akan membuat function baru seperti ini

Comment on lines 28 to 29
searchByName: string;
setSearchByName: (searchByName: string) => void;
Copy link
Collaborator

Choose a reason for hiding this comment

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

kalau nama state nya diganti dengan searchQuery gimana ? supaya kedepannya satu state ini bisa digunakan untuk berbagai macam pencarian. Gak cuma searchByName aja

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

owalah baik mas.

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.

3 participants