Skip to content

Commit

Permalink
[khan-change] lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredly committed Oct 18, 2023
1 parent 3e54f36 commit 55e9f21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/native-stack/src/views/RetainContext.tsx
@@ -1,9 +1,9 @@
import * as React from 'react';
import type {
ParamListBase,
Route,
StackNavigationState,
} from '@react-navigation/native';
import * as React from 'react';

import type {
NativeStackDescriptorMap,
Expand Down Expand Up @@ -76,6 +76,7 @@ export function useRetainContext(
},
release(key) {
setRetainedScenes((screens) => {

Check warning on line 78 in packages/native-stack/src/views/RetainContext.tsx

View check run for this annotation

Codecov / codecov/patch

packages/native-stack/src/views/RetainContext.tsx#L77-L78

Added lines #L77 - L78 were not covered by tests
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { [key]: _, ...rest } = screens;
return rest;

Check warning on line 81 in packages/native-stack/src/views/RetainContext.tsx

View check run for this annotation

Codecov / codecov/patch

packages/native-stack/src/views/RetainContext.tsx#L80-L81

Added lines #L80 - L81 were not covered by tests
});
Expand All @@ -91,6 +92,7 @@ export function useRetainContext(

// Remove from retained
setRetainedScenes((screens) => {

Check warning on line 94 in packages/native-stack/src/views/RetainContext.tsx

View check run for this annotation

Codecov / codecov/patch

packages/native-stack/src/views/RetainContext.tsx#L94

Added line #L94 was not covered by tests
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { [key]: _, ...rest } = screens;
return rest;

Check warning on line 97 in packages/native-stack/src/views/RetainContext.tsx

View check run for this annotation

Codecov / codecov/patch

packages/native-stack/src/views/RetainContext.tsx#L96-L97

Added lines #L96 - L97 were not covered by tests
});
Expand All @@ -108,7 +110,7 @@ export function useRetainContext(
},
supported: true,
}),
[]
[navigation]
);

const routeKeys = state.routes.reduce((map, route) => {
Expand Down

0 comments on commit 55e9f21

Please sign in to comment.