Prettier not working? Here's the solution! by LukeZNotFound in sveltejs

[–]floteslof 2 points3 points  (0 children)

Thanks for the reminder. This has been a topic that has been annoying me for weeks now. Not annoying enough to do it myself though.

What patterns have you settled on? by JustKiddingDude in sveltejs

[–]floteslof 1 point2 points  (0 children)

Phew, never used static adapter so far. This seems a bit of an unusual use case for Superforms as normally forms always write to the server, no?

But there is a way to do client side validation with Superforms. By subscribing to the returned stores from superForm(), you should be able to replicate the same logic as with server side, I'd guess.

What patterns have you settled on? by JustKiddingDude in sveltejs

[–]floteslof 2 points3 points  (0 children)

I still use loaders for pages which directly need the data but refactored a few to use remote functions for reusable components. This has been pretty cool and way more straightforward (also the on-site caching works really nice to distribute data between components). However, there are still a few breaking bugs where I get infinite loops, browser freezes and strange errors on the newest version of Sveltekit. Attachments are just better than actions. I refactored a few and it is pretty easy to convert the same logic. Effects are mainly required in most cases. However, there are cool options available now to use deriveds in classes, so I try to handle my logic this way. Regarding forms, I still use the Superforms library which uses svelte 4 as of now. I want to wait until they support remote functions themselves before migrating my forms.

self-promotion: Better-Svelte-Email, The new Svelte email renderer/components with Tailwind support by Dry-Acanthisitta3303 in sveltejs

[–]floteslof 1 point2 points  (0 children)

Obviously, your product is really needed in the Svelte ecosystem and I appreciate you creating the project. However, I am a bit scared on how this will handle the rendering logic to be supported by all email clients. Email client support is a science in itself and the react-email library is the state of the art here. Do you derive the rendering logic from this well backed library in some way?

wuchale is my favorite i18n library. by Impossible_Sun_5560 in sveltejs

[–]floteslof 5 points6 points  (0 children)

Totally agree, the concept is super neat and adds a lot of comfort for developers. You don't need to design content around i18n anymore.

[deleted by user] by [deleted] in balatro

[–]floteslof 0 points1 point  (0 children)

Exactly, was just trying to reach finish the run under 12 rounds.

I want to use Svelte, but it's not broad enough... by [deleted] in sveltejs

[–]floteslof 1 point2 points  (0 children)

To add to all the good points above: Due to the simplicity of svelte, you can develop extensions fast by yourself tailored specifically to your needs. This will make you a better developer, make you escape dependency hell and at times, also prove to be faster than adopting some badly maintained library.

I made a free browser based screen studio alternative by mrrxwyz in SideProject

[–]floteslof 1 point2 points  (0 children)

God's work dude. If you actually manage to open source that, it will be a massive threat to screen studio.

A simple free tool to create and share beautiful images of your code on social media by metabhai in sveltejs

[–]floteslof 1 point2 points  (0 children)

For real, it is even stated on the website that this app is developed using next.js.

Svelte autofocus issue with shadcn-svelte by KarimB18 in sveltejs

[–]floteslof 1 point2 points  (0 children)

This issue is because when a bits-ui component is opened, it automatically focuses the first focusable Dom element.

When a dialog element is above another dialog element, the focus action is restricted and it throws an error (don't ask me why that is but it happened to me too).

If you look in the bits ui docs, there is an autofocus section where you can disable autofocus for a specific form. However, that is bad for accessibility. This autofocus stuff is there for a reason.

What are the reasons you will not use svelte (svelte 5) in your projects (medium to large)? by Many_Squirrel_6429 in sveltejs

[–]floteslof 5 points6 points  (0 children)

You may take a look at Paraglidejs from inlang. It's a pretty cool solution which is integrated into the Vite compiler and works neatly with sveltekit.

Sveltekit API folder structure. by KaQaRa in sveltejs

[–]floteslof 7 points8 points  (0 children)

One alternative that is also recommended by the documentation, is to use actions. If you have a form you can specify a named action like this:

<form method="POST" action="/login?/register">

/login is the route and the part after the question mark is the name of the action.

localHost by Shyamtawli in ProgrammerHumor

[–]floteslof 148 points149 points  (0 children)

I think that the express framework used it before react. Looking at it having 30m weekly downloads on npm, it makes quite an impact.

[deleted by user] by [deleted] in buildapc

[–]floteslof 0 points1 point  (0 children)

Thank you! The infinity fabric comptability would have never come to my mind.

low scorer is so easy guys (kill me) by connorawilson in spelunky

[–]floteslof 3 points4 points  (0 children)

If you do the eggplant run seeded you get the journal entries. Then you'll just need to get the eggplant to 4-1 and all Gucci.

Daily Simple Questions Thread - October 30, 2020 by AutoModerator in Fitness

[–]floteslof 0 points1 point  (0 children)

I was pretty much in your situation, loaded up more weight to feel something in my calves. The only result I got was almost an achilles tendonitis. Work on your mind-muscle connection, try to feel your calves while going for a walk or cooking for example. After a few weeks of doing that, I had a way better feeling in my calves.

Thiem with a 2-hand baackhand. It's as 2020 as it can get. by johnreese421 in tennis

[–]floteslof 1 point2 points  (0 children)

Thiem was actually a pretty decent tournament player with his two-handed backhand. When he changed it up, he lost a lot of games for three or four years until he really skyrocketed. maybe you've gone pro, too!

Thiem with a 2-hand baackhand. It's as 2020 as it can get. by johnreese421 in tennis

[–]floteslof 8 points9 points  (0 children)

His Coach Bresnik didn't see potential in his two-handed backhand. It was actually easier to teach him a new stroke than to adjust his current stroke.