π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿
π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿
TtRPC
Created by π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿 on 5/24/2023 in #❓-help
useEffect and useMutation error about conditional rendering of hooks
Seems like calling a hook inside another hook is what causes it
11 replies
TtRPC
Created by π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿 on 5/24/2023 in #❓-help
useEffect and useMutation error about conditional rendering of hooks
I gave up and ended up using a button instead, it solved my issue
11 replies
TtRPC
Created by π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿 on 5/24/2023 in #❓-help
useEffect and useMutation error about conditional rendering of hooks
@alex / KATT
11 replies
TtRPC
Created by π›ˆπž‚π—Ώπžˆπ’†π’ˆπ–π°π›ˆ 𝐜0πŸƒ3𝗿 on 5/24/2023 in #❓-help
useEffect and useMutation error about conditional rendering of hooks
No, it reports the error at this code: markAsSeen({ sentTo: paPlayer!.id }); I believe it is because I am calling a hook inside another hook
11 replies
TtRPC
Created by xdxd#5555 / hanya on 4/19/2023 in #❓-help
Adding clerk auth object to createServerSideHelpers
You need to use getServerSideProps if you need to access authentication info, it's because of how Next.js works and not a trpc limitation
4 replies