blair
WWasp-lang
•Created by blair on 10/7/2024 in #đŸ™‹questions
Modify data in `onBeforeSignup` hook
Pretty much the title. Is this possible?
My signup flow requires a key linked to a third party service, and the goal was to gather data via that service's API before inserting it into the database. I've got properties on my
User
model that I don't include in my auth flow for obvious reasons - what's the go here?
Is there a good option here besides making the data optional and inserting it in an onAfterSignupHook
instead? I presume I'll need to hit the api twice if so - once in onBeforeSignup
to verify, and once again in onAfterSignup
to add additional properties.10 replies
WWasp-lang
•Created by blair on 10/7/2024 in #đŸ™‹questions
NextJS usePathname equivalent
Gday devs,
I'm currently using
client.rootComponent
in a similar fashion to NextJS's layout.tsx
however was there an alternative to usePathname()
? Or do I need to patch together my own?
Obviously window.location.pathname
exists but it won't trigger a re-render upon navigation. Couldn't find anything in gh issues or on the docs, so reaching out here. Cheers!6 replies