Closed stoyanovk closed 6 months ago
In this PR I added available to add function as arg for useLocale method It's need for resolving problem with global TTag instance when you use SSR and streaming
I made short demo when I use ttag with this changes and AsyncLocalStorage node js api
https://github.com/stoyanovk/asyncstorage_ttag_demo/blob/master/src/index.js
Great job, would be great to update doc for the library also https://github.com/ttag-org/ttag/blob/master/docs/library-api.md
In this PR I added available to add function as arg for useLocale method It's need for resolving problem with global TTag instance when you use SSR and streaming
I made short demo when I use ttag with this changes and AsyncLocalStorage node js api
https://github.com/stoyanovk/asyncstorage_ttag_demo/blob/master/src/index.js