Satou kuzuma
Satou kuzuma
Explore posts from servers
TtRPC
Created by Satou kuzuma on 9/21/2022 in #❓-help
Websocket connection failed.
At the end I switched to pusher
14 replies
TtRPC
Created by Satou kuzuma on 9/21/2022 in #❓-help
Websocket connection failed.
No, I tried several things without any success. I thought It had to be something with nextjs getInitialProps but can’t find anything in the docs
14 replies
TtRPC
Created by Satou kuzuma on 9/21/2022 in #❓-help
Websocket connection failed.
I tried that at first but that causes the same error
14 replies
TtRPC
Created by Satou kuzuma on 9/21/2022 in #❓-help
Websocket connection failed.
what I'm asking is, what should I return as pageProps if don't want to use authentication?
14 replies
TtRPC
Created by Satou kuzuma on 9/21/2022 in #❓-help
Websocket connection failed.
And the problem is that I'm returning pageProps as an empty object and that is causing the error
14 replies
TtRPC
Created by Satou kuzuma on 9/21/2022 in #❓-help
Websocket connection failed.
const MyApp: AppType = ({ Component, pageProps }) => { return <Component {...pageProps} />; }; MyApp.getInitialProps = async ({ctx}) => { return { pageProps: {} }; }; export default trpc.withTRPC(MyApp);
14 replies
TtRPC
Created by Satou kuzuma on 9/21/2022 in #❓-help
Websocket connection failed.
Thats not what I was talking about. What I want to do is use it without a session provider because I don't need auth. My code is this:
14 replies