Edit Widgets: Replace store name string with exposed store definition#28044
Edit Widgets: Replace store name string with exposed store definition#28044
Conversation
|
Size Change: -15 B (0%) Total Size: 1.3 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Didn't we create a file that exports the constant with the name of the store to avoid cyclic dependencies between files in other packages for the store implementation?
There was a problem hiding this comment.
My bad, that's true. Fixing it.
There was a problem hiding this comment.
I think you updated too much. I meant only all files inside edit-widgets/src/store/*. It's perfectly fine to reference editWidgetsStore imported from edit-wdigets/src/store/index/js from files in edit-widgets/src/components/* and the rest 😄
There was a problem hiding this comment.
Oh, I see... I thought that referencing the store inside its own package could also cause cyclic dependencies somehow... I'll fix it by tomorrow. Sorry for the confusion, I kinda did it in a hurry 😅...
There was a problem hiding this comment.
No worries. I really appreciate all your work done some far, you rock 🥇
gziolo
left a comment
There was a problem hiding this comment.
Looks good to me. There is one thing to check as pointed out in the comment.
2ec622e to
e97fbe7
Compare
e97fbe7 to
eb9e5fd
Compare
|
Thank you for addressing all feedback 👍 |
Description
Addresses #27088. Replaces the store names (hardcoded strings) with the exposed
storedefinitions.How has this been tested?
npm run test.Types of changes
Code refactoring, non-breaking change.
Checklist: