Skip to content

Thoughts on decoupling render pass from view updates, and better support support for immediate state change / output #370

Open
@rjrjr

Description

@rjrjr

Distilling slack monologue thread:

  • It'd be nice to have a way to conflate renderings when they're coming "too fast".
  • Thinking in particular of attractive techniques people resort to in order to have a workflow immediately emit output "without rendering", leading to cascades of dozens of render passes kicked off by a single user event.
  • Typical scheme is to fire off a Observable.just(Unit).asWorker {...} on first render and have it update state / emit output.
  • Can we find a way to prevent emitting renderings until the action queue is empty?
  • Maybe couple this with the ability to emit output from initialState
  • Maybe just restrict it to that — the only optimized way to re-render is via output from initialState

Metadata

Metadata

Labels

optimizationIssues related to benchmarking and optimizationuiRelated to UI integration

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions