JakeLoew
WWasp-lang
•Created by JakeLoew on 11/5/2024 in #đŸ™‹questions
Is there a way to inject env variables into wasp testing?
It's okay though, I'm not hung up on it đŸ™Œ
13 replies
WWasp-lang
•Created by JakeLoew on 11/5/2024 in #đŸ™‹questions
Is there a way to inject env variables into wasp testing?
The test is for a class that is used on the server, but it's just typescript code and doesn't necessarily have any server dependencies other than those environment variables.
13 replies
WWasp-lang
•Created by JakeLoew on 11/5/2024 in #đŸ™‹questions
Is there a way to inject env variables into wasp testing?
I'm running my tests with
wasp test client
-- the code doesn't seem to be reading in the values from .env.server. Do you expect that it should?13 replies
WWasp-lang
•Created by JakeLoew on 11/5/2024 in #đŸ™‹questions
Is there a way to inject env variables into wasp testing?
Works just fine for my case.
13 replies
WWasp-lang
•Created by JakeLoew on 11/5/2024 in #đŸ™‹questions
Is there a way to inject env variables into wasp testing?
I think I can just set them in my vitest block like so:
13 replies
WWasp-lang
•Created by JakeLoew on 11/5/2024 in #đŸ™‹questions
Is there a way to inject env variables into wasp testing?
Thank you.
13 replies
WWasp-lang
•Created by JakeLoew on 9/30/2024 in #đŸ™‹questions
Client Side Routing
We have solved the problem in a similar way to the nginx solution outlined here -- although we are using cloudfront. The solution for us was outside the application layer as well.
Thank you for the support!
9 replies
WWasp-lang
•Created by JakeLoew on 9/18/2024 in #đŸ™‹questions
How to update data coming from `useQuery`
You're exactly right about what I was looking for. Thanks so much! So queries in wasp update when actions update entities specified within that query. Perfect for my use case. Thanks!
12 replies
WWasp-lang
•Created by JakeLoew on 9/18/2024 in #đŸ™‹questions
How to update data coming from `useQuery`
It seems that
updateQuery
doesn't return the result of createNewBook
--only the arguments given to the action. I will need the id
of book
as part of the data set up the optimistic update. Is there no way to handle a failure?12 replies
WWasp-lang
•Created by JakeLoew on 8/8/2024 in #đŸ™‹questions
find-or-create with social login -- SaaS template
thank you! I'll be following along on this feature!
13 replies
WWasp-lang
•Created by JakeLoew on 8/8/2024 in #đŸ™‹questions
find-or-create with social login -- SaaS template
@kapa.ai Is it possible to roll my own OAuth with wasp? I'm confident in part of the process, but still have several unknowns.
Knowns:
- Remove
gitHub
from my auth
object in main.wasp
- Set up a github oauth app with an authorized redirect uri of an api
I establish in main.wasp
- Write the handler for the /callback
api endpoint and authorize with github
Unknowns:
- Once I get the user's identity from github, how to I set them as the signed in user in wasp?13 replies
WWasp-lang
•Created by JakeLoew on 8/8/2024 in #đŸ™‹questions
find-or-create with social login -- SaaS template
Great, thanks. You are a very smart support bot.
13 replies
WWasp-lang
•Created by JakeLoew on 7/24/2024 in #đŸ™‹questions
useQuery error handling
Thank you very much! Yes, reproducible examples are helpful to all!
39 replies
WWasp-lang
•Created by JakeLoew on 7/24/2024 in #đŸ™‹questions
useQuery error handling
It looks like the query attempts again when the window is focused. I think I was missing it when switching windows.
39 replies
WWasp-lang
•Created by JakeLoew on 7/24/2024 in #đŸ™‹questions
useQuery error handling
I have not run
wasp clean
in the other app and I think it's still doing the behavior. Let me check.39 replies
WWasp-lang
•Created by JakeLoew on 7/24/2024 in #đŸ™‹questions
useQuery error handling
Although I was working on another app prior and noticed the behavior there. That's when I decided to try to reproduce with the todo-ts template.
39 replies
WWasp-lang
•Created by JakeLoew on 7/24/2024 in #đŸ™‹questions
useQuery error handling
Yes.
39 replies
WWasp-lang
•Created by JakeLoew on 7/24/2024 in #đŸ™‹questions
useQuery error handling
Just did
wasp clean
and rebooted.39 replies
WWasp-lang
•Created by JakeLoew on 7/24/2024 in #đŸ™‹questions
useQuery error handling
Had not seen the error until now.
39 replies