Skip to content

docs(readme): fix example code to use useQuery hook and TypeScript types#75

Merged
mpfilbin merged 1 commit into
mainfrom
fix-readme-example-code
May 15, 2026
Merged

docs(readme): fix example code to use useQuery hook and TypeScript types#75
mpfilbin merged 1 commit into
mainfrom
fix-readme-example-code

Conversation

@mackenziemcclaskey
Copy link
Copy Markdown
Collaborator

@mackenziemcclaskey mackenziemcclaskey commented May 8, 2026

Summary

  • Adds useQuery to the import list and shows a realistic data-fetching component in the example
  • Adds proper TypeScript types (ReactNode) to AppProvider so the snippet compiles without errors
  • Replaces the placeholder EventListPage import (which no longer exists in the scaffold) with a self-contained ComponentWithData example

Test plan

  • Read through the updated example in README and verify it makes sense end-to-end
  • Confirm the snippet would compile with the correct imports from @workday/everywhere

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@mpfilbin mpfilbin left a comment

Choose a reason for hiding this comment

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

This tripped me up today. Thanks for updating the docs!

@mpfilbin mpfilbin merged commit 4a16096 into main May 15, 2026
2 checks passed
@mpfilbin mpfilbin deleted the fix-readme-example-code branch May 15, 2026 19:29
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.

3 participants