Telegram Group & Telegram Channel
Не используйте React Query для чтения синхронных данных

Не всегда следует использовать React Query только потому, что это возможно.

Это касается, например, localStorage, но также и других случаев.

Если данные можно читать синхронно и подписываться на изменения, используйте useSyncExternalStore().

Отсутствует необходимость обрабатывать состояние загрузки/ошибок.

✍️ @React_lib



tg-me.com/React_lib/617
Create:
Last Update:

Не используйте React Query для чтения синхронных данных

Не всегда следует использовать React Query только потому, что это возможно.

Это касается, например, localStorage, но также и других случаев.

Если данные можно читать синхронно и подписываться на изменения, используйте useSyncExternalStore().

Отсутствует необходимость обрабатывать состояние загрузки/ошибок.

✍️ @React_lib

BY React




Share with your friend now:
tg-me.com/React_lib/617

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

Telegram announces Search Filters

With the help of the Search Filters option, users can now filter search results by type. They can do that by using the new tabs: Media, Links, Files and others. Searches can be done based on the particular time period like by typing in the date or even “Yesterday”. If users type in the name of a person, group, channel or bot, an extra filter will be applied to the searches.

Start with a fresh view of investing strategy. The combination of risks and fads this quarter looks to be topping. That means the future is ready to move in.Likely, there will not be a wholesale shift. Company actions will aim to benefit from economic growth, inflationary pressures and a return of market-determined interest rates. In turn, all of that should drive the stock market and investment returns higher.

telegram from sg


Telegram React
FROM USA