-
Notifications
You must be signed in to change notification settings - Fork 16.6k
fix: Duplicated plugin registration #26379
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: Duplicated plugin registration #26379
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #26379 +/- ##
==========================================
- Coverage 69.18% 69.14% -0.04%
==========================================
Files 1946 1946
Lines 75988 75986 -2
Branches 8479 8479
==========================================
- Hits 52570 52541 -29
- Misses 21228 21266 +38
+ Partials 2190 2179 -11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
(cherry picked from commit 29633e7)
(cherry picked from commit 29633e7)
(cherry picked from commit 29633e7)
|
Still seeing this problem in 5.0.0. Any advice? |
|
LOL, the new comment made me think this was a new PR. This is annoying, and is still an issue. Feel free to file a GitHub issue, or dig into this PR to see what changed since then and investigate a new fix. It'd be appreciated. |
|
Came here with the same idea -> |
|
There are only 2 places in master calling src/views/App.tsx @Vitor-Avila @rusackas You might want to check if this call is required for Embedded. |
@rusackas are you aware if that's necessary? I'm not sure |
|
Both these calls probably shouldn't be module-scoped ... |
SUMMARY
This PR removes the duplicated plugin registration that generates the following type of warning:
The duplicate registration was necessary when those pages belonged to different React apps. Now, they belong to the same app which makes the registration unnecessary.
The registration should happen only once when the application initializes.
TESTING INSTRUCTIONS
1 - Open any dashboard
2 - Check that the warnings are not there anymore
ADDITIONAL INFORMATION