![]() This new API is recommended for any library that integrates with state external to React. useSyncExternalStore is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous.To support React 18, some libraries may need to switch to one of the following APIs: In the React 18 Working Group we worked with library maintainers to create new APIs needed to support concurrent rendering for use cases specific to their use case in areas like styles, and external stores. ![]() Before import įor more information, see the Automatic batching deep dive. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |