Skip to content

Commit

Permalink
update description for onyxData
Browse files Browse the repository at this point in the history
  • Loading branch information
marcochavezf committed Jun 24, 2022
1 parent b3e5f4d commit d474717
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import {version} from '../../package.json';
*
* @param {String} command - Name of API command to call
* @param {Object} apiCommandParameters - The object of parameters to send to the API
* @param {Object} onyxData - Object containing errors, loading states, and optimistic UI data
* @param {Object} onyxData - Object containing errors, loading states, and optimistic UI data that will be merged
* into Onyx before and after a request is made. Each nested object will be formatted in
* the same way as an API response.
* @param {Object} [onyxData.optimisticData] - An object of data that will be merged into Onyx before the request is made
* @param {Object} [onyxData.successData] - An object of data that will be merged into Onyx when the request succeeds.
* @param {Object} [onyxData.failureData] - An object of data that will be merged into Onyx when the request fails.
Expand Down

0 comments on commit d474717

Please sign in to comment.