typesafe-i18n icon indicating copy to clipboard operation
typesafe-i18n copied to clipboard

React Docs Don't Match the React Example

Open Pushplaybang opened this issue 2 years ago • 0 comments

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 avatar Sep 03 '23 14:09 Pushplaybang