Store source's framework only once, in symbols
Categories
(DevTools :: Debugger, enhancement)
Tracking
(firefox104 fixed)
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(1 file)
We are currently duplicated source's framework in symbols and tabs reducers:
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/actions/sources/symbols.js#26-29
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/reducers/tabs.js#151
This is uncessary and confusing. And this possibly lead to more state/component updates.
This is mostly used to computed the source icon, where things are quite confusing as we are using symbols and tab's framework... which are the same thing!
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/utils/source.js#503-505
https://searchfox.org/mozilla-central/rev/5e6e08e53ca4f9f62e19bcbae542eef7824641ed/devtools/client/debugger/src/components/shared/SourceIcon.js#35-36
I extented test coverage to better cover the behavior of SourceIcon,
while simplifying a few things around this component by unifying the various places
where we compute the final icon, so that now it is only done by getSourceClassnames
and modifier.
Assignee | ||
Comment 1•3 years ago
|
||
We are currently duplicated source's framework in symbols and tabs reducers.
This is uncessary and confusing. And this possibly lead to more state/component updates.
This is mostly used to computed the source icon.
I extented test coverage to better cover the behavior of SourceIcon,
while simplifying a few things around this component by unifying the various places
where we compute the final icon, so that now it is only done by getSourceClassnames
and modifier.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
bugherder |
Description
•