react-native-onyx icon indicating copy to clipboard operation
react-native-onyx copied to clipboard

Persistent, offline-first state management solution for React Native. Easy to use with minimal config and boilerplate.

Results 54 react-native-onyx issues
Sort by recently updated
recently updated
newest added

**Problem** Coming from this [discussion](https://expensify.slack.com/archives/C02HWMSMZEC/p1662546244463989). It's not currently possible to subscribe to keys relationally. So to join one key to another key in a collection we must subscribe to the...

Engineering
Monthly

# Problem - Subscribing to keys in non React component requires a bit of boilerplate code e.g. take these examples in the `libs/actions/Report.js` file ```js let currentUserEmail; let currentUserAccountID; Onyx.connect({...

cc @neil-marcellini and coming from https://github.com/Expensify/react-native-onyx/pull/129#discussion_r883005645... Unsure if there is any observable problem with this at the moment, but it just doesn't seem like the expected behavior. This is how...

## Problem When the app inits and many keys need to be set things get really slow on web. It currently takes me about 10-12 seconds to switch to a...

Regarding *"Make sure that we are always using `Onyx.merge()` over `Onxy.set()` except for when absolutely necessary"* This is not just an Expensify/App problem, every future consumer of Onyx can have...

Planning

### Details ### Related Issues [GH_LINK](https://github.com/Expensify/App/issues/40355) ### Automated Tests ### Manual Tests ### Author Checklist - [ ] I linked the correct issue in the `### Related Issues` section above...

### Details This PR fixes cases where a call to `Onyx.set` could invoke a `Onyx.connect` listener twice. For `withOnyx` connections this isn't happening, as they are already guarded by previous...

There exists a "race condition" where an Onyx connection callback will be called twice for the same data. Potentially this can lead to unnecessary rerenders in the react applications. The...

In this PR: - https://github.com/Expensify/react-native-onyx/pull/315 We added support for batching updates, so that react only has to commit one big update, instead of updating every component separately. Back then there...

Onyx seems to have an unused dependency on `ascii-table`, I think it can be removed? ![Screenshot 2024-07-18 at 14 59 23](https://github.com/user-attachments/assets/a2402ee4-903c-4929-9404-58cfb130e0a4) Its also nowhere used in NewDot