You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I wanted to consume this single point of data inside a shortcode I had to do a really deep debugging around context of execution, and I reached to this:
It feels that I am in unsafe territory consuming something like this.
Describe the solution you'd like
I think the developer experience could be improved by two things:
Exposing a better namespace for this, my suggestion would be no acronyms, better naming: this.context.data.
Documenting this context object so there are clear expectations on how it will behave, plus it feels I am consuming this data in the way is intended and is safe for future upgrades of the package.
Describe alternatives you've considered
No response
Additional context
You can see this working in my personal site repository:
Is your feature request related to a problem? Please describe.
Currently, if I declare global data in my config, for example...
When I wanted to consume this single point of data inside a shortcode I had to do a really deep debugging around context of execution, and I reached to this:
It feels that I am in unsafe territory consuming something like this.
Describe the solution you'd like
I think the developer experience could be improved by two things:
this.context.data
.Describe alternatives you've considered
No response
Additional context
You can see this working in my personal site repository:
The text was updated successfully, but these errors were encountered: