HomePhabricator
Diffusion Comm a702d773b80b

[lib] make fields in setting client store action optional

Description

[lib] make fields in setting client store action optional

Summary:
I want to reuse this logic on the web, but only drafts are stored in the web database for now. Dispatching this with empty objects will affect the store, so we have somehow tell reducer that values are missing.

A different approach will be introducing a new action type, with only drafts, and using it in draft reducer only - in reviewers think that this is better I am open to updating this.

Depends on D7662

Test Plan: Check on native is this does not affect current logic

Reviewers: tomek, marcin, michal

Reviewed By: tomek

Subscribers: ashoat, atul

Differential Revision: https://phab.comm.dev/D7664

Details

Provenance
kamilAuthored on Apr 25 2023, 10:58 AM
Reviewer
tomek
Differential Revision
D7664: [lib] make fields in setting client store action optional
Parents
rCOMM69f0149d6ea6: [web-db] enable performing draft operations on SQLite
Branches
Unknown
Tags
Unknown