Skip to content

Conversation

GioLogist
Copy link
Contributor

Fixes #70

We noticed that WiredComponent.getInitialProps is sync on client and async on server. We would be interested in them being async on either or, since it's technically allowed in Next.JS

As requested, also added backwards compatible typing, so sync and async will continue to work without issue.

Copy link
Contributor

@rrdelaney rrdelaney left a comment

Choose a reason for hiding this comment

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

This is great, thank you! Will release as v1.0.1 soon.

@rrdelaney rrdelaney merged commit 09b7f53 into RevereCRE:main Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

WiredComponent.getInitialProps -> Always async
2 participants