Skip to content
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

fix the example code in README.md #80

Merged
merged 1 commit into from
Sep 18, 2023
Merged

fix the example code in README.md #80

merged 1 commit into from
Sep 18, 2023

Conversation

philipodev
Copy link
Contributor

Hi, this is a great project!
Had some minor issues with the example code in README but i figured them out.

The example is lacking the content and root properties in the initialData. (so i get a TypeError for trying to read title of undefined root).
Also added the neccessary css import.

A better fix would probably be to make them optional instead of just empty objects. Happy to close this one and work on that instead if you feel like that would be a more preferable fix.

Cheers!

@vercel
Copy link

vercel bot commented Sep 16, 2023

@philipodev is attempting to deploy a commit to the Measured Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@chrisvxd chrisvxd left a comment

Choose a reason for hiding this comment

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

Thanks @philipodev! Agree that making them optional would be better, but this is still accurate. Feel free to open another PR to make the underlying types optional and undo the data defaulting.

@chrisvxd chrisvxd merged commit b89feef into measuredco:main Sep 18, 2023
1 check passed
@philipodev philipodev deleted the fix-readme-example branch September 18, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants