Skip to content

Conversation

@JarredKennedy
Copy link
Contributor

Hi, I fixed what I believe were some typos in the registerStore example for the data package. When I tried the function the way it is in the documentation, the state argument in the getPrice resolver has the value expected to be defined in the item argument and the item argument is undefined.

It looks like maybe the function changed at some point and the documentation wasn't updated.

Copy link
Contributor

@chrisvanpatten chrisvanpatten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay to me but I'd like someone more familiar with the data module to review!

@chrisvanpatten chrisvanpatten added [Type] Developer Documentation Documentation for developers [Package] Data /packages/data labels Dec 15, 2018
@gziolo gziolo added this to the Documentation & Handbook milestone Dec 16, 2018
@gziolo gziolo requested review from aduth and youknowriad December 16, 2018 20:02
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this.

I conferred with @youknowriad and looked over #5219 . The omission of state is intentional for resolvers, so these adjustments are correct.

@chrisvanpatten chrisvanpatten merged commit e13bedb into WordPress:master Dec 18, 2018
youknowriad pushed a commit that referenced this pull request Jan 9, 2019
youknowriad pushed a commit that referenced this pull request Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Data /packages/data [Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants