From cf532793c1ef35c7f49684fbb5f105ba87fbaad8 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 21 Jul 2023 15:16:14 +0200 Subject: [PATCH] Implement RSC support --- src/AsyncButton.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AsyncButton.tsx b/src/AsyncButton.tsx index 44180d1..42bf7a3 100644 --- a/src/AsyncButton.tsx +++ b/src/AsyncButton.tsx @@ -1,3 +1,5 @@ +'use client'; + import React, { useCallback, useEffect, useRef, useState } from 'react'; import PropTypes from 'prop-types'; import makeCancellable from 'make-cancellable-promise'; -- 2.51.2