Skip to content

Commit

Permalink
[khan-change] lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredly committed Jan 17, 2024
1 parent 338d1d0 commit 2d093fe
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) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { [key]: _, ...rest } = screens;
return rest;
});
Expand All @@ -91,6 +92,7 @@ export function useRetainContext(

// Remove from retained
setRetainedScenes((screens) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { [key]: _, ...rest } = screens;
return rest;
});
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 2d093fe

Please sign in to comment.