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 onDependencyChange logic #77

Merged
merged 7 commits into from
Jan 10, 2025
Merged

Fix onDependencyChange logic #77

merged 7 commits into from
Jan 10, 2025

Conversation

petrnymsa
Copy link
Member

Fixes #76

@petrnymsa petrnymsa requested a review from tenhobi January 2, 2025 21:46
tenhobi
tenhobi previously approved these changes Jan 7, 2025
for (final input in inputs) {
final union = input.dependencies.map((e) => e.inputKey).toSet().union(updatedKeys.toSet());
final updatedKeysExceptInputItself = updatedKeys.toSet().difference({input.inputKey});
Copy link
Member

Choose a reason for hiding this comment

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

Proč tu musí být znovu toSet, updatedKeys už set je, ne?

Copy link
Member Author

Choose a reason for hiding this comment

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

Upraveno

for (final input in inputs) {
final union = input.dependencies.map((e) => e.inputKey).toSet().union(updatedKeys.toSet());
final updatedKeysExceptInputItself = updatedKeys.toSet().difference({input.inputKey});
Copy link
Member

Choose a reason for hiding this comment

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

Přidat test, že se tam nepřidává daný input key?

Copy link
Member Author

Choose a reason for hiding this comment

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

Přidal jsem několik testů

tenhobi
tenhobi previously approved these changes Jan 9, 2025
Copy link

github-actions bot commented Jan 10, 2025

DCM report

✅ no issues found!

Full report: https://github.com/netglade/glade_forms/runs/35419750188

@petrnymsa petrnymsa requested a review from tenhobi January 10, 2025 09:10
@petrnymsa petrnymsa merged commit 354e692 into main Jan 10, 2025
2 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.

Input subscribed to its own changes in onDependencyChange
2 participants