Skip to content

Commit

Permalink
remove rerender for past event screen
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonIsAzn committed Feb 1, 2025
1 parent 9c936cf commit 5d1350b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/screens/events/PastEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ const PastEvents = ({ navigation }: NativeStackScreenProps<EventsStackParams>) =
fetchInitialEvents();
}, []);

useFocusEffect(
useCallback(() => {
if ((isAdminLead || isCoach)) {
fetchInitialEvents();
}
}, [isAdminLead, isCoach])
);


const handleScroll = useCallback(({ nativeEvent }: NativeSyntheticEvent<NativeScrollEvent>) => {
const isCloseToBottom = ({ layoutMeasurement, contentOffset, contentSize }: NativeScrollEvent) => {
const paddingToBottom = 20;
Expand Down

0 comments on commit 5d1350b

Please sign in to comment.