dash-docs icon indicating copy to clipboard operation
dash-docs copied to clipboard

Document various tricks to get around the two-way data flow limitation

Open chriddyp opened this issue 5 years ago • 0 comments

Usually involving things like listening to _timestamp properties as Input instead of the actual value. From one conversation with a Dash user:

[2x Checkbox value -> Store Data] -> [Store modified_timestamp -> 2x Checkbox value] Then you run a simple reconciliation alg in the Store and don't update when all values are in sync (to avoid the infinite loops) Someone should document that trick cause it would solve the input <-> slider problem and a bunch of others Though if I use that more than a few times I think I'd just write my own SyncStore component that would make that much cleaner

There are other examples with sliders in the community forum

chriddyp avatar Sep 02 '20 23:09 chriddyp