Add reaktiv order calculator example - #5783
Merged
Merged
Conversation
Demonstrates reactive state management with the reaktiv library, using Signal, Computed, and Effect primitives to drive NiceGUI UI updates. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
falkoschindler
self-requested a review
February 16, 2026 15:57
evnchn
commented
Feb 16, 2026
Collaborator
Author
|
Hmm. Should add some comments to group the related bindings. And we should give some more thought to Perhaps a |
falkoschindler
approved these changes
Feb 16, 2026
falkoschindler
left a comment
Contributor
There was a problem hiding this comment.
Ok, I think this is good enough for now.
Let's merge 👍🏻
falkoschindler
enabled auto-merge
February 16, 2026 16:30
buiapp
added a commit
to buiapp/nicegui
that referenced
this pull request
Feb 19, 2026
…collection Effects in reaktiv must be assigned to variables, otherwise they get garbage collected and stop working. The previous example only worked due to a bug in reaktiv that has since been fixed. Updated the example to properly store Effect instances. zauberzeug#5783, zauberzeug#4758
5 tasks
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Feb 19, 2026
…collection (#5812) ### Motivation Effects in reaktiv must be assigned to variables, otherwise they get garbage collected and stop working. The previous example only worked due to a bug in reaktiv that has since been fixed. Updated the example to properly store Effect instances. This API behavior is documented in the reaktiv docs. References: #5783, #4758 ### Implementation We need just to assign Effects to variables. ### Progress - [x] I chose a meaningful title that completes the sentence: "If applied, this PR will..." - [x] The implementation is complete. - [x] If this PR addresses a security issue, it has been coordinated via the [security advisory](https://github.com/zauberzeug/nicegui/security/advisories/new) process. - [x] Pytests have been added (or are not necessary). - [x] Documentation has been added (or is not necessary).
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Addresses #4758 (comment)
Adds a new example demonstrating integration with the reaktiv reactive state management library. This showcases an alternative approach to state management in NiceGUI using fine-grained reactive signals.
Implementation
The example is an order calculator with:
Requires reaktiv >= 0.21.1 which fixes a diamond dependency graph bug (buiapp/reaktiv#27).
Progress