RufusRed
RufusRed
Explore posts from servers
RRailway
Created by RufusRed on 9/11/2024 in #✋|help
Can we run Matrix on Railway?
N/A
4 replies
RRailway
Created by RufusRed on 5/20/2023 in #✋|help
Internal server error when I try to login with GitHub
I was after you were. Nothing on the status page that would have indicated an issue though.
6 replies
RRailway
Created by RufusRed on 5/20/2023 in #✋|help
Internal server error when I try to login with GitHub
N/A
6 replies
WWasp-lang
Created by RufusRed on 4/21/2023 in #🙋questions
State management
Perfect, thank you.
7 replies
WWasp-lang
Created by RufusRed on 4/21/2023 in #🙋questions
Generating Components and Actions
@martinsos ^^
15 replies
WWasp-lang
Created by RufusRed on 4/21/2023 in #🙋questions
Generating Components and Actions
I assume there is some sort of tree shaking so if this generated methods and components are not used they will not get added to the final built output?
15 replies
WWasp-lang
Created by RufusRed on 4/21/2023 in #🙋questions
Generating Components and Actions
For Components I suspect it’s a one shot. You generate when the wasp file is saved only if the component doesn’t already exist. Ideally the templates used to generate these components would be designed to be updated easily the developer using wasp to build an application.
15 replies
WWasp-lang
Created by RufusRed on 4/21/2023 in #🙋questions
Generating Components and Actions
These are things I’ve considered and there are pros and cons. Let’s talk actions first and then components. For actions I think creating crud methods with specific names when an entity is added to a wasp file and first saved. This could create the file if it is not there. I think these methods could even be updated if attributes are added/removed from the entity in the future. People can still add other methods for joining/searching/use-case optimization. The challenge here is that someone might want to extend the base crud, in most cases this could be done with a different named method that is a wrapper. However if a user wants some of the crud methods to not be regenerated at all or they want to wrap the crud methods but not expose the generated methods. My take on this is if they could mark the crud methods as private and updates would honor that it will give them full control other than not being able to reuse the method names. And support continuous updates.
15 replies
WWasp-lang
Created by RufusRed on 4/21/2023 in #🙋questions
State management
Cool, I completely missed that, didn’t realize that was a state management component, thank you!
7 replies
WWasp-lang
Created by RufusRed on 4/21/2023 in #🙋questions
Generating Components and Actions
Yes that is what I had in mind. Or even if there is no path create a file in an appropriate location and update the wasp file although I get that might be sketchy.
15 replies
WWasp-lang
Created by RufusRed on 4/21/2023 in #🙋questions
Generating Components and Actions
And for components. Creating the component file with imports would be a small but helpful step, especially for folks that are new to react.
15 replies
WWasp-lang
Created by RufusRed on 4/21/2023 in #🙋questions
Generating Components and Actions
Exactly! Auto generating template crud operations. Would be amazing if that kept up if you update your entity definitions over time, that would be an added bonus.
15 replies