AmazingViegas
AmazingViegas
TTCTheo's Typesafe Cult
Created by AmazingViegas on 2/19/2024 in #questions
Shadcn Toast not showing using useEffect
Hello. I am trying to render a shadcn toast after a redirect from a server action, but first, I need to be able to render a toast on page load.
export default function Page() {
const { toast } = useToast();
useEffect(() => {
console.log("hello");
toast({
title: "Test",
description: "Test",
});
}, [toast]);
export default function Page() {
const { toast } = useToast();
useEffect(() => {
console.log("hello");
toast({
title: "Test",
description: "Test",
});
}, [toast]);
I can't figure out why this does not work... anyone here that has used this library might help? Thanks in advance!
10 replies
TTCTheo's Typesafe Cult
Created by AmazingViegas on 10/11/2023 in #questions
Indie Hackers in here, how do you usually apply for Google Auth and get approved fast?
I am creating a web app. For now I am still building it but I need Google Auth ready the moment I launch the app. When creating a startup/web app what is your process when applying for Google Auth?
2 replies