Skip to content

[DOCS] Add callback arg to setProps header in mount.md - #1361

Merged
ljharb merged 1 commit into
enzymejs:masterfrom
DannyDelott:patch-1
Aug 7, 2018
Merged

ljharb merged 1 commit into
enzymejs:masterfrom
DannyDelott:patch-1

Conversation

@DannyDelott

Copy link
Copy Markdown
Contributor

Match the signature as expressed insetProps.md

Comment thread docs/api/mount.md
Manually sets state of the root component.

#### [`.setProps(nextProps) => ReactWrapper`](ReactWrapper/setProps.md)
#### [`.setProps(nextProps[, callback]) => ReactWrapper`](ReactWrapper/setProps.md)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, does a similar change need to be made in the shallow docs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Without looking at any of the code, the documentation for shallow's setProps does not describe a callback argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants