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

React Docs Don't Match the React Example #738

Open
Pushplaybang opened this issue Sep 3, 2023 · 0 comments
Open

React Docs Don't Match the React Example #738

Pushplaybang opened this issue Sep 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Pushplaybang
Copy link

Version

5.26.2

Describe the bug

The react docs incorrectly suggest using the sync loadlocale and attempt to call .then in the useEffect hook.

The example seems to be correct.

Reproduction

Follow the links to compare the example and the docs.

Getting Started with React:
https://github.com/ivanhofer/typesafe-i18n/tree/main/packages/adapter-react

React Example:
https://github.com/ivanhofer/typesafe-i18n/blob/main/packages/adapter-react/examples/react/src/App.tsx

Logs

No response

Config

No response

Additional information

No response

@Pushplaybang Pushplaybang added the bug Something isn't working label Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant