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

fix(Tablets): reduce rerenders #585

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

artemmufazalov
Copy link
Member

No description provided.

@@ -34,14 +34,9 @@ interface TabletsProps {
export const Tablets = ({path, nodeId, className}: TabletsProps) => {
const dispatch = useDispatch();

const {
data = {},
Copy link
Member Author

Choose a reason for hiding this comment

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

data was used in useMemo dependencies. Because of this empty object assign, component infinitely rerendered until data was loaded

@artemmufazalov artemmufazalov marked this pull request as ready for review November 15, 2023 09:00
@artemmufazalov artemmufazalov merged commit f1767a1 into main Nov 16, 2023
4 checks passed
@artemmufazalov artemmufazalov deleted the fix-tablets-rerenders branch November 16, 2023 08:14
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