-
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
DataViews: extract common constants to file #56251
DataViews: extract common constants to file #56251
Conversation
Size Change: -13 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
@@ -31,6 +31,7 @@ import { | |||
import SideEditor from './side-editor'; | |||
import Media from '../media'; | |||
import { unlock } from '../../lock-unlock'; | |||
import { ENUMERATION_TYPE, OPERATOR_IN } from '../dataviews/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.
This import and the next one assume that the future "data views" package would export these constants as well. I'm not sure I like exporting constants from a package to another but I guess when we extract the package we can either duplicate these constants in edit-site as well or replace them with strings.
Part of #55083
What?
Extracts a couple of common constants to its own
constants.js
file.Why?
To centralize where they live.
How?
Create a new
constant.js
file.Testing Instructions