React unsubscribe a listener from anywhere in the app

前端 未结 0 1525
误落风尘
误落风尘 2021-02-11 11:16

I need help extracting a database listener function into its own callable function so I can unsubscribe from it. Here is what I have:

const reroute = (user) =>         


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