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

A Telegram spokesman declined to comment on the bond issue or the amount of the debt the company has due. The spokesman said Telegram’s equipment and bandwidth costs are growing because it has consistently posted more than 40% year-to-year growth in users.

That growth environment will include rising inflation and interest rates. Those upward shifts naturally accompany healthy growth periods as the demand for resources, products and services rise. Importantly, the Federal Reserve has laid out the rationale for not interfering with that natural growth transition.It's not exactly a fad, but there is a widespread willingness to pay up for a growth story. Classic fundamental analysis takes a back seat. Even negative earnings are ignored. In fact, positive earnings seem to be a limiting measure, producing the question, "Is that all you've got?" The preference is a vision of untold riches when the exciting story plays out as expected.

telegram from ru


Telegram React
FROM USA