fix(spreadsheet): prevent duplicate equipment fetch#3830
fix(spreadsheet): prevent duplicate equipment fetch#3830TheMaskedTurtle wants to merge 3 commits intomainfrom
Conversation
- add isFetching check - add a set on equipment types Signed-off-by: Joris Mancini <joris.mancini_externe@rte-france.com>
Signed-off-by: Joris Mancini <joris.mancini_externe@rte-france.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo changes prevent duplicate equipment data fetching: the hook now deduplicates spreadsheet equipment types using a Set, and the component adds an Changes
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



PR Summary
As fetching elements for spreadsheet is heavy on resource we want to limit them as much as possible. We noticed some cases of fetch duplication that were not necessary :
So this PR fixes these two cases.