Skip to content

Make Onyx values update instantly #123

@roryabraham

Description

@roryabraham

Coming from: Expensify/App#8306 (comment)

Problem

Setting values in Onyx always takes at least one tick of the event loop and updates subscribers late.

Why this is important

A lot of our code could be made simpler and easier to reason about if we could safely assume that any value written in Onyx will be updated immediately.

Solution

Need to explore a bit, but probably an in-memory cache of some kind. Also need to be careful not to break stuff and to update all our tests appropriately.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions