React unsubscribe a listener from anywhere in the app

前端 未结 0 566
执笔经年
执笔经年 2021-02-11 11:24

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) =>         


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