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: |

Traders also expressed uncertainty about the situation with China Evergrande, as the indebted property company has not provided clarification about a key interest payment.In economic news, the Commerce Department reported an unexpected increase in U.S. new home sales in August.Crude oil prices climbed Friday and front-month WTI oil futures contracts saw gains for a fifth straight week amid tighter supplies. West Texas Intermediate Crude oil futures for November rose $0.68 or 0.9 percent at 73.98 a barrel. WTI Crude futures gained 2.8 percent for the week.

Why Telegram?

Telegram has no known backdoors and, even though it is come in for criticism for using proprietary encryption methods instead of open-source ones, those have yet to be compromised. While no messaging app can guarantee a 100% impermeable defense against determined attackers, Telegram is vulnerabilities are few and either theoretical or based on spoof files fooling users into actively enabling an attack.

telegram from es


Telegram React
FROM USA