Skip to content

fix: preview components freezes for forbidden actions - #460

Merged
petruki merged 1 commit into
masterfrom
staging
Nov 27, 2026
Merged

petruki merged 1 commit into
masterfrom
staging

Conversation

@petruki

@petruki petruki commented Nov 27, 2026

Copy link
Copy Markdown
Member

This pull request introduces improvements to how component initialization logic is handled in both the ConfigPreviewComponent and GroupPreviewComponent. The main changes involve restructuring the initialization order and making use of the untracked function to better control reactive effects.

Component initialization improvements:

  • In both config-preview.component.ts and group-preview.component.ts, the untracked function is now imported and used to wrap calls to readPermissionToObject and related setup logic, preventing unnecessary reactivity during initialization. [1] [2]
  • The initialization order in the effect block has been updated: permission and config/group setup methods (permissions(), config(), group()) are now called before the permission reading and operation selection logic, ensuring dependencies are set up in the correct order. [1] [2]

@petruki petruki added this to the v2.2.1 milestone Nov 27, 2026
@petruki petruki self-assigned this Nov 27, 2026
@petruki petruki added the ai-assisted Indicates that AI tools were used to assist this with this change label Nov 27, 2026
@petruki
petruki merged commit 115f564 into master Nov 27, 2026
3 checks passed
@petruki
petruki deleted the staging branch November 27, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted Indicates that AI tools were used to assist this with this change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant