Skip to content

OBPIH-7093 Small search and pagination issue on cc lists#5247

Merged
awalkowiak merged 4 commits intodevelopfrom
OBPIH-7093
May 16, 2025
Merged

OBPIH-7093 Small search and pagination issue on cc lists#5247
awalkowiak merged 4 commits intodevelopfrom
OBPIH-7093

Conversation

@SebastianLib
Copy link
Collaborator

✨ Description of Change

Link to GitHub issue or Jira ticket:

Description:


📷 Screenshots & Recordings (optional)

@github-actions github-actions bot added the domain: frontend Changes or discussions relating to the frontend UI label May 9, 2025
@codecov
Copy link

codecov bot commented May 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 8.31%. Comparing base (9911499) to head (ad7be27).
⚠️ Report is 143 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##             develop   #5247      +/-   ##
============================================
- Coverage       8.31%   8.31%   -0.01%     
  Complexity       988     988              
============================================
  Files            638     638              
  Lines          43246   43251       +5     
  Branches       10511   10515       +4     
============================================
  Hits            3597    3597              
- Misses         39096   39101       +5     
  Partials         553     553              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines 12 to 15
// triggerFetchDataCounter triggers data fetching in useTableDataV2, preventing duplicate
// API calls. Previously, useEffect dependencies [filterParams, offset] caused two requests,
// as useTablePagination useEffect listened to filterParams and later updated offset
const [triggerFetchDataCounter, setTriggerFetchDataCounter] = useState(0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like any ideas that are related to endless counting. Maybe you can do something like concatenating the filterParams to get the trivial value (I mean string) and then pass it as a dependency to useEffect?

@SebastianLib SebastianLib requested a review from alannadolny May 9, 2025 14:47
@awalkowiak awalkowiak merged commit 909f4aa into develop May 16, 2025
9 checks passed
@awalkowiak awalkowiak deleted the OBPIH-7093 branch May 16, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Changes or discussions relating to the frontend UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants