p6l.richard
Explore posts from serversHow can I use `onSettled` in the `experimental_createTRPCNextAppDirClient`?
but it seems that
experimental_createTRPCNextAppDirClient
is intended for client but doesn't return a useMutation.
does that mean that if I want to useMutation, i stay on v10?8 replies
How can I use `onSettled` in the `experimental_createTRPCNextAppDirClient`?
Or would the nextjs style to handling this be something like:
- use React's
useFormState
hook
https://react.dev/reference/react-dom/hooks/useFormState for form state (or the form library of your choice)
- move the trpc mutation in a server action
?8 replies
TRPC with Nextjs 13 App Router
Without knowing the context, my assumption is that you're using the
api
exported from app_trpc/client.ts
in the app/page.tsx, which is a page without the use client directive.
If you're using a mutation in a form
(or similar), simply move that form into it's own component (separate from the page.tsx
) and add "use client"
in the first line of the file. Then import your NewForm
component from page.tsx
and this error should go away.2 replies
CACrawlee & Apify
•Created by fascinating-indigo on 7/28/2023 in #crawlee-js
Initiate a crawler's actor with a POST fetch & avoid browser
Got you, thank you for clarifying, Vojtech. 🙏
I’m going with the following mental model then:
- BasicCrawler skips the navigation and I fetch/parse everything myself
- HttpCrawler handles navigation (fetch) with a custom request class instance (assuming some fetch wrapper) but no response parsing
- cheerio handles navigation (fetch) & response parsing.
If this is somewhat correct, my pick would actually be the basiccrawler because I wouldn’t have to learn how the http crawlst works and could use fetch directly.
But will test out! Thank you.
3 replies
CACrawlee & Apify
•Created by harsh-harlequin on 7/25/2023 in #apify-platform
How can I protect my named key value store with a bearer token?
the id is in here right now. 😅
8 replies
CACrawlee & Apify
•Created by ambitious-aqua on 7/25/2023 in #apify-platform
How can I protect my named key value store with a bearer token?
Mhh... Okay, I'd ideally like to protect that access anyways.
8 replies
CACrawlee & Apify
•Created by dependent-tan on 7/25/2023 in #apify-platform
How can I protect my named key value store with a bearer token?

8 replies
CACrawlee & Apify
•Created by rare-sapphire on 7/25/2023 in #apify-platform
How can I protect my named key value store with a bearer token?
basically anyone just need to know the id and can access.
8 replies
CACrawlee & Apify
•Created by ugly-tan on 7/25/2023 in #apify-platform
How can I protect my named key value store with a bearer token?
i can see that is true also for the session store. 🤔
8 replies
CACrawlee & Apify
•Created by afraid-scarlet on 7/22/2023 in #apify-platform
Apify server in Germany
I did select Germany as the country. But isn’t there still a foundation to the Datastore and other dependencies to be done?
Where are these hosted?
4 replies