Fecony
WWasp-lang
•Created by CamBlackwood on 10/9/2024 in #🙋questions
Is it good practice to call an action in a job in wasp?
20 replies
WWasp-lang
•Created by CamBlackwood on 10/9/2024 in #🙋questions
Is it good practice to call an action in a job in wasp?
gpt answer
20 replies
WWasp-lang
•Created by CamBlackwood on 10/9/2024 in #🙋questions
Is it good practice to call an action in a job in wasp?
if it's only you then you don't really need to limit it then, but code wise logic is the same, to extract parts that actually do what you need. like imagine updating react state with api call and not local useState 😸
20 replies
WWasp-lang
•Created by CamBlackwood on 10/9/2024 in #🙋questions
Is it good practice to call an action in a job in wasp?
yeah, tradeoff is if it's expensive to call that API you would prefer to let user run it manually, BUT run it in a queue and then notify user that data/report/whatever is ready
you don't want to let user click it more and more to drain out your limits 😸
it depends ofc.... what is that api and how frequently you want user to let it run, like maybe you can run it manually but then it won't be queried at night?
or can query it once a day + at midnight
anyway in terms of code your job doesn't have to call your own api via action, logic should be extracted from it and called in job, or action
20 replies
WWasp-lang
•Created by CamBlackwood on 10/9/2024 in #🙋questions
Is it good practice to call an action in a job in wasp?
Admin click -> action -> call service to do something
Job -> call service to do something
if an action is an api call you probably dont' want to call your own api from a job jsut ot do something :be:
20 replies
WWasp-lang
•Created by Sven on 10/7/2024 in #🙋questions
what is in essence the difference between a query and action
In the end of the day it’s just method call on server
Ofc “properly” would be something you can mock and test or replace easily in future
Like one query to check if something exists, and action to create would be easier to understand, action and query don’t have side effects(creating when you did just check something)
Ofc having side effects like that depends on use case and how aware other developers are, in solo project it might be acceptable, if you won’t forget what that action did, and won’t wonder why it does return some default blank record that didn’t exist moment ago
7 replies
WWasp-lang
•Created by Hugoo on 9/24/2024 in #🙋questions
best library for a react js ui components dashboard? with tsx.
I remember it worked with wasp, but ofc not sure how good at scale it is 😸
21 replies
WWasp-lang
•Created by Hugoo on 9/24/2024 in #🙋questions
best library for a react js ui components dashboard? with tsx.
21 replies
WWasp-lang
•Created by Fecony on 9/12/2024 in #🙋questions
How to become friend of da boi
for general knowledge base building
10 replies
WWasp-lang
•Created by Fecony on 9/12/2024 in #🙋questions
How to become friend of da boi
Da boi way
10 replies
WWasp-lang
•Created by Mrr on 9/5/2024 in #🙋questions
Real time change in UI
Wasp does hot reload, but sometimes changes need to rebuild app. It sounds like my recent issue with WSL 2, my projects didn't have hot reload and I though thye don't have it
15 replies
WWasp-lang
•Created by altab on 8/11/2024 in #🙋questions
REACT_APP_STRIPE_CUSTOMER_PORTAL in Saas template
REACT_APP_STRIPE_CUSTOMER_PORTAL is a client side env variable so you have to put it in .env.client file
It's described here https://docs.opensaas.sh/guides/stripe-integration/#get-your-customer-portal-link
7 replies
WWasp-lang
•Created by matijash on 8/7/2024 in #🙋questions
Migrating Wasp / OpenSaaS app from 0.11.8 to the latest version
Great job MihoGPT
10 replies
WWasp-lang
•Created by fred-123 on 6/29/2024 in #🙋questions
How to change the language of authentication forms?
I guess there is no way to change that for now
13 replies
WWasp-lang
•Created by fred-123 on 6/29/2024 in #🙋questions
How to change the language of authentication forms?
Note: you can ask me a follow up question by @ mentioning me again 💬
13 replies
WWasp-lang
•Created by g0053 on 3/30/2024 in #🙋questions
has anyone got shadcn to work with wasp? I am trying but keep getting an error
Hey @miho recently shared this snippet on how to use shadcn with wasp
https://gist.github.com/infomiho/b35e9366e16913949e13eaba0538f553
8 replies
WWasp-lang
•Created by DirtyBirdy19 on 2/10/2024 in #🙋questions
Cannot install wasp
Hey there is an Article guide to run wasp on Windows, this will of course require you to use WSL
https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl
8 replies
WWasp-lang
•Created by Artomatica on 10/17/2023 in #🙋questions
Wasp SaaS+blog
@matijash I see another friend of da boi here
13 replies