Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: solve serial events display error in the list #855

Merged

Conversation

ardasnturk
Copy link
Member

  • added refetch to refresh the data in the list after selecting any day from the calendar
  • added fetchPolicy for refetch to work
  • added loading control to the data props of ListComponent to show the user that the data has been refreshed

SVA-665

@ardasnturk ardasnturk added the bug Something isn't working label Jun 21, 2023
@ardasnturk ardasnturk added this to the 3.2.4 milestone Jun 21, 2023
@ardasnturk ardasnturk requested a review from donni106 June 21, 2023 12:29
@ardasnturk ardasnturk self-assigned this Jun 21, 2023
@github-actions github-actions bot added the codeball:approved Codeball label Jun 21, 2023
@what-the-diff
Copy link

what-the-diff bot commented Jun 21, 2023

PR Summary

  • Imported additional context
    Added NetworkContext to enable network-related operations
  • Updated import for helper function
    Modified the import for parseListItemsFromQuery to include graphqlFetchPolicy
  • Implemented fetch policy control
    Introduced a fetchPolicy variable using the graphqlFetchPolicy function
  • Enhanced query options
    Added fetchPolicy to the options of useQuery hook
  • Improved handling of data refetch
    Included refetch in the useQuery hook result and added await in the onDayPress function
  • Adjusted data handling while loading
    Provided an empty array as the data prop when loading is true in the ListComponent

- added `refetch` to refresh the data in the list after selecting any day from the calendar
- added `fetchPolicy` for `refetch` to work
- added `loading` control to the `data` props of `ListComponent` to show the user that the
  data has been refreshed

SVA-665
@ardasnturk ardasnturk force-pushed the fix/SVA-665-solve-serial-events-display-error-in-the-list branch from d59c910 to a748914 Compare June 23, 2023 10:43
- added +1 to `initialNumToRender` prop to fix index error in `SectionList` when date
  selected from calendar is changed

SVA-665
- added `fetchMoreData` function to load new data when scrolling to the bottom of the list
- deleted `horizontal` and `showBackToTop` props because they are non-functional

SVA-665
- removed the date information shown in the `subtitle` in the list below the calendar as it was redundant

SVA-665
@ardasnturk ardasnturk requested a review from donni106 June 28, 2023 12:06
ardasnturk and others added 2 commits June 28, 2023 14:17
- adjusted the number of cells to be rendered initially, regardless of the size of the dataset,
  according to `MAX_INITIAL_NUM_TO_RENDER`

SVA-665
@ardasnturk ardasnturk merged commit c45a2bb into master Jun 30, 2023
@ardasnturk ardasnturk deleted the fix/SVA-665-solve-serial-events-display-error-in-the-list branch June 30, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working codeball:approved Codeball
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants