React hooks, Why is it automatically re rendered when the DB value changes?

后端 未结 0 1405
盖世英雄少女心
盖世英雄少女心 2021-01-16 11:46

First of all, I use Firebase to structure my DB.

I saved my db value through useState like this way.

const getFromFirestore = useCallback(() => {
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题