我有一个名为useIsUserSubscribed的自定义钩子,它检查是否订阅了特定的用户。如果用户被订阅,则返回true,如果用户没有订阅,则返回false .import { useSelector } from "react-redux";
// this hook checks if the current user is subscribed to
我有一个名为useIsUserSubscribed的自定义钩子,它检查是否订阅了特定的用户。如果用户被订阅,则返回true,如果用户没有订阅,则返回false .import { useSelector } from "react-redux";
// this hook checks if the current user is subscribed to