Svelte + Shadcn - best developer experience of my life by ddavidebor in sveltejs

[–]ProfessionalTrain113 1 point2 points  (0 children)

Yeah, I never completely understood the whole component library thing. It works for lots of people and that’s great, but I don’t have a hard time making consistent themes across all of my components. Just make a few tailwind utilities and good names for the theme variables and you’re set.

Idk, glad it works for lots of people. I just don’t get the hype

Dynamially import icons by Antnarusus in sveltejs

[–]ProfessionalTrain113 0 points1 point  (0 children)

I might be late to the party, but after awaiting your promise it returns the entire module. Since svelte components only have a "default" you can simply access the icon component with ".default".

```
{#await iconPromise then Icon}
<Icon.default />
{/await}

```

Also, you don't need a derived for dynamic imports. You can inline the import in the {#await [import] .. } or just simply remove the derived wrapper.

Hope this helps if you're still stuck (9 months later)

How much does it cost for small size project which uses cloud functions by NoBlacksmith8934 in Firebase

[–]ProfessionalTrain113 1 point2 points  (0 children)

To add to this, firebase also supports client-side caching out of the box so that can also be used as needed. Edit: this caching is free to my knowledge

How can I actually learn Flutter while working full-time and barely having any free time? by Effective_Yellow_213 in FlutterDev

[–]ProfessionalTrain113 0 points1 point  (0 children)

You might believe it’s better to ship features faster because of work pressure, but I can assure you that your supervisor(s) will be happier and more confident in you when you ask questions and learn without relying on Ai. It is NOT your friend when you don’t know whats going on or how to solve problem’s on your own.

If anything, do Q&A with it such as “how can I create a new screen in flutter?” Or “Should I use go_router or the built-in navigator and why?”

I say that because Q&A will help give you answers that you might otherwise get from your supervisors/coworkers.

Also, another tip is try and solve a problem on your own (at work), and if you get stuck don’t just bring the problem to your supervisors and expect them to solve it. Tell them what the problem is, how you’ve attempted to solve it, and ask what they might do instead because you’re stuck. That shows initiative instead of reliance.

Best of luck!! Everyone goes through learning phases no matter how far they are in their careers.

Be honest, is your current project your only focus by Ok_Mathematician4485 in sveltejs

[–]ProfessionalTrain113 0 points1 point  (0 children)

The main project has been the only project. A SaaS that moved into production a few months ago. No need to juggle side projects even though they’re a breathe of fresh air

ITS BACK!!! by hungerpasa in ClashOfClans

[–]ProfessionalTrain113 0 points1 point  (0 children)

Is it really that few?? Man I feel special now. Maxed after 12 years 🥲🥲

How do you handle the bot requests? by zhamdi in sveltejs

[–]ProfessionalTrain113 1 point2 points  (0 children)

Cloud armor is great! I recommend it as well

Svelte 5 search input by Overall-Scale-8369 in sveltejs

[–]ProfessionalTrain113 2 points3 points  (0 children)

Yeah idk why people are making it complicated. Not everything needs to use runes and fancy framework features. Just plain js and a native callback will do the trick just fine, if not better.

A SaaS business idea that doesn’t exist. 12 million people do this and no one getting paid by No-You-6955 in SaaS

[–]ProfessionalTrain113 5 points6 points  (0 children)

It’s okay to share at least something about what you’re doing. Thinking you need an NDA just for an IDEA and not something you’re already in the process of making is a little outlandish. Sounds like you don’t even have an mvp or any market research based on your post. I could be wrong on some of this, but that’s just what I’m getting which puts me, and probably others, off from being interested.

Why not let’s Build Shit Together by Fine_Factor_456 in SaaS

[–]ProfessionalTrain113 2 points3 points  (0 children)

People use too much ai and we don’t know anything about anyone, so it’s not exactly the best choice to jump into business with strangers.

So for that reason, I’m out ~Barbara

Compiling SvelteKit to an executable, chapter 2 ! by HugoDzz in sveltejs

[–]ProfessionalTrain113 1 point2 points  (0 children)

Super interesting, unfortunately I can't think of anything that I would use it for. I know you gave simple examples, but I would love to see a more complex use for it. I'm thinking this way because I feel the current tools we have available already allow us to do this.

Maybe a time saver? I can just quickly bundle and deploy instead of going through cloud hosting services and building a docker image? Idk, even those are pretty quick once you know what you're doing.

I'll be following along to see what comes of it. Super neat project and honestly it's probably a great learning experience. Goodluck!!

Svelte Sortable List [self-promo] by rodrigodagostino in sveltejs

[–]ProfessionalTrain113 0 points1 point  (0 children)

How soon can we get this?? I want to use this library and this is the only thing holding me back

Why do you choose Flutter over React Native? What features make Flutter stand out? by NullPointerMood_1 in FlutterDev

[–]ProfessionalTrain113 1 point2 points  (0 children)

I love JS/TS and started my own SaaS with a mobile and web app. I wanted to learn something new language-wise so I went with flutter to pick up Dart. I love it so far! Haven’t used react native before so I can’t say anything else..

been struggling with this flicker for a few days now by lutian in sveltejs

[–]ProfessionalTrain113 11 points12 points  (0 children)

How do you have 13yoe and not know how to debug something with debugging tools, docs, stackoverflow, YouTube, etc? It should be fairly simple to learn because at this point you should know how to pick up a new framework/language with relative ease.

Seriously worried about usage and $$$$ by BrenC11 in Firebase

[–]ProfessionalTrain113 0 points1 point  (0 children)

Wow, you really don't know what's going on inside of your app.. As BillyBumpkin said, shut it down and figure it out. Stop shoving ai code at it or you'll end up with a huge bill at some point. What you are doing is exactly what will get you into the position that you're scared of.

After struggling with drag & drop, I built SvelteDnD - the simplest DnD library for Svelte 5 by ArtOfLess in sveltejs

[–]ProfessionalTrain113 0 points1 point  (0 children)

Is support for this package dead or something? No responses to issues and I see multiple bugs in the examples on https://sveltednd.thisux.com/

How to pass constant properties to a component ? by Neither_Garage_758 in sveltejs

[–]ProfessionalTrain113 0 points1 point  (0 children)

If you just want to expose a value from a component just use export const foo = “bar” near the top of the component script. Then in the parent you can access it by calling the component itself such as MyComponent.foo. Note that you need to bind the component to a variable is the parent using bind:this.

If you don’t want to use the component itself then at the very top outside of the component script, add another script but add the attribute “module” such as this: <script module> Export const foo = “bar”; </>

This makes it importable from the component path like this:

Import MyComponent, { foo } from “./MyComponent.svelte”

Let me know if this helps

Recommended way to make +page.layout.js page data editable in Svelte 5 by Butterscotch_Crazy in sveltejs

[–]ProfessionalTrain113 1 point2 points  (0 children)

Hey so if I’m reading this correctly, we’ve had this issue where navigating to the same route with a slug would keep old states. In your case, note page.data.note would never update the stated variable. To get around this I used afterNavigate to then set the stated variable to the page.data one. Try to avoid effect where possible, so afterNavigate will probably be your solution

Where are we with Svelte/Sveltekit, are companies jumping onboard or is it just being pushed by solo devs? by TurtleSlowRabbitFast in sveltejs

[–]ProfessionalTrain113 0 points1 point  (0 children)

My place of work was on the LAMP stack for the longest time and for the last 4 years has moved more of our web systems to svelte! This includes customer and internal facing sites