-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
block-editor package: Replace hardcoded store name strings #28775
block-editor package: Replace hardcoded store name strings #28775
Conversation
Size Change: -657 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
Having problems with native files 🤔 I'll give it another go, if I can't get it to work then I'll leave out native files from this PR and leave it to someone else who is experienced with the mobile part. |
Couldn't replace
No idea why it's happening and how to fix it 😬 We can merge it as is and replace them in a follow-up PR to keep the changes separate. |
@@ -22,7 +22,7 @@ import { | |||
import * as selectors from '../selectors'; | |||
import reducer from '../reducer'; | |||
import * as actions from '../actions'; | |||
import '../..'; | |||
import { STORE_NAME as blockEditorStoreName } from '../../store/constants'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be enough to use:
import { STORE_NAME as blockEditorStoreName } from '../../store/constants'; | |
import { STORE_NAME as blockEditorStoreName } from '../constants'; |
There still might be some cyclic dependencies in the React Native code, so it's better to leave everything like that for the final iteration. I scanned all the changes and everything looks good. I might miss something because it's a type of change that machines are better to process. Anyway, let's proceed. Thank you for working on this, awesome job! |
Since WordPress/gutenberg#28775 namespace is not always a string.
Since WordPress/gutenberg#28775 namespace is not always a string. Co-authored-by: Bart <[email protected]>
Description
Related to #27088
Replace hardcoded store names with their store object.
How has this been tested?
Make sure tests are passing. Smoke test.
Types of changes
Code Quality
Checklist: