Skip to content

fix(search): stabilize onReset callback passed to FacetedFilterSystem#991

Merged
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
boalambo:fix/984-stabilize-onreset-callback
Jul 23, 2026
Merged

fix(search): stabilize onReset callback passed to FacetedFilterSystem#991
RUKAYAT-CODER merged 1 commit into
rinafcode:mainfrom
boalambo:fix/984-stabilize-onreset-callback

Conversation

@boalambo

Copy link
Copy Markdown
Contributor

Description
Wrap the inline onReset arrow function in useCallback so the React.memo-wrapped FacetedFilterSystem doesn't re-render on every parent render.

Related Issue

Closes #984

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • No console errors
  • Uses Lucide icons consistently
  • Responsive design implemented
  • Starknet best practices followed" --base main

Wrap the inline onReset arrow function in useCallback so the
React.memo-wrapped FacetedFilterSystem doesn't re-render on every
parent render.

Closes rinafcode#984
@drips-wave

drips-wave Bot commented Jul 23, 2026

Copy link
Copy Markdown

@boalambo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER RUKAYAT-CODER left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit c0e224d into rinafcode:main Jul 23, 2026
6 checks passed
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.

Stabilize the onReset callback passed to the memoized FacetedFilterSystem

2 participants