Browse Source

include pageId to an array

kaori 4 years ago
parent
commit
ddd7d8e19e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/stores/page.tsx

+ 1 - 1
packages/app/src/stores/page.tsx

@@ -39,7 +39,7 @@ export const useSWRxSubscribeButton = <Data, Error>(
 
 
 ): SWRResponse<{status: boolean | null}, Error> => {
 ): SWRResponse<{status: boolean | null}, Error> => {
   return useSWR(
   return useSWR(
-    '/page/subscribe',
+    ['/page/subscribe', pageId],
     endpoint => apiv3Get(endpoint, { pageId }).then((response) => {
     endpoint => apiv3Get(endpoint, { pageId }).then((response) => {
       return {
       return {
         status: response.data.subscribing,
         status: response.data.subscribing,