Skip to content

Commit

Permalink
Address minor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Mar 20, 2024
1 parent 9dc8ed2 commit 78b00ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Onyx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function init({
* cause the component to re-render (and that can be expensive from a performance standpoint).
* @param [mapping.initialValue] THIS PARAM IS ONLY USED WITH withOnyx().
* If included, this will be passed to the component so that something can be rendered while data is being fetched from the DB.
* Note that it will not cause the component to have the loading prop set to true. |
* Note that it will not cause the component to have the loading prop set to true.
* @returns an ID to use when calling disconnect
*/
function connect<TKey extends OnyxKey>(mapping: ConnectOptions<TKey>): number {
Expand Down
2 changes: 1 addition & 1 deletion lib/OnyxUtils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ declare function getDefaultKeyStates(): Record<string, OnyxValue<string>>;
* @param initialKeyStates - initial data to set when `init()` and `clear()` are called
* @param safeEvictionKeys - This is an array of keys (individual or collection patterns) that when provided to Onyx are flagged as "safe" for removal.
*/
declare function initStoreValues(keys: DeepRecord<string, OnyxKey>, initialKeyStates: Partial<NullableKeyValueMapping>, safeEvictionKeys: OnyxKey[]): Record<string, OnyxValue<string>>;
declare function initStoreValues(keys: DeepRecord<string, OnyxKey>, initialKeyStates: Partial<NullableKeyValueMapping>, safeEvictionKeys: OnyxKey[]): void;

/**
* Sends an action to DevTools extension
Expand Down

0 comments on commit 78b00ca

Please sign in to comment.