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(console): refactor TenantxContext util methods #6710

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

darcyYe
Copy link
Contributor

@darcyYe darcyYe commented Oct 22, 2024

Summary

fix cloud CI failed issue by wrapping TenantsContext utils methods with useCallback to prevent unnecessary re-render.
This rerender sometimes triggers infinite loops.

Testing

Tested with Cloud CI.

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

Copy link

github-actions bot commented Oct 22, 2024

COMPARE TO master

Total Size Diff 📈 +246 Bytes

Diff by File
Name Diff
packages/console/src/contexts/SubscriptionDataProvider/use-new-subscription-data.ts 📈 +7 Bytes
packages/console/src/contexts/TenantsProvider.tsx 📈 +239 Bytes

@darcyYe darcyYe force-pushed the yemq-revert-remove-isAddOnAvailable branch from 449ee8d to 33d3409 Compare October 22, 2024 09:19
@github-actions github-actions bot added size/s and removed size/m labels Oct 22, 2024
@darcyYe darcyYe force-pushed the yemq-revert-remove-isAddOnAvailable branch from 33d3409 to fd9ffdd Compare October 22, 2024 09:20
@darcyYe darcyYe force-pushed the yemq-revert-remove-isAddOnAvailable branch from fd9ffdd to 8db2d86 Compare October 22, 2024 10:01
@darcyYe darcyYe changed the title chore: undo remove isAddOnAvailable fix(console): fix cloud CI failed issue Oct 22, 2024
@darcyYe darcyYe marked this pull request as ready for review October 22, 2024 10:19
@darcyYe darcyYe enabled auto-merge (squash) October 22, 2024 10:19
@darcyYe darcyYe changed the title fix(console): fix cloud CI failed issue fix(console): refactor TenantxContext util methods Oct 23, 2024
@darcyYe darcyYe merged commit b906db7 into master Oct 23, 2024
43 of 44 checks passed
@darcyYe darcyYe deleted the yemq-revert-remove-isAddOnAvailable branch October 23, 2024 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants