-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] setTiddlerData triggers a changed tiddler event even if no change #8784
Comments
The problem is backwards compatibility. At the moment the code looks like this: TiddlyWiki5/core/modules/wiki.js Lines 954 to 969 in dabbc1b
As you found out, It may be possible to suppress See: Line 1076 in dabbc1b
|
Hi @ittayd the underlying issue is that the core is written on the assumptions that the tiddler store will not be changed during a refresh cycle. Breaking that assumption will cause oddities and bugs that are unpredictable. Independently of that fact, there is the question of whether |
I also had concerns about the performance implications |
Describe the bug
it calls
this.addTiddler
which in turn callsthis.enqueueTiddlerEvent
which causes a refresh even if nothing changed.this can sometimes cause an infinite loop if data is set during a refresh. In particular it happens for the full-text-search plugin as the count of results is refreshed (of course it is bad to set data as part of a filter evaluation)
Expected behavior
the change event should not trigger
To Reproduce
No response
Screenshots
No response
TiddlyWiki Configuration
5.3.5
Additional context
No response
The text was updated successfully, but these errors were encountered: