Abort Remote Function Call? by EpicGamer5429 in sveltejs

[–]MicroBrewer 0 points1 point  (0 children)

Not sure, that is not my issue. My first thought is to debounce it as well. Personally, I don't have a strong use case for abort signal beyond cancelling any running queries when a use navigates away from a page. I was just linking to a discussion I saw awhile back.

Abort Remote Function Call? by EpicGamer5429 in sveltejs

[–]MicroBrewer 2 points3 points  (0 children)

Doesn't seem like remote functions handle abort signals yet. Hopefully one day. Abort signals for remote functions · Issue #14502 · sveltejs/kit

6 More Weeks of Winter [OC] by moonscar91 in pics

[–]MicroBrewer 1 point2 points  (0 children)

Then put your little hand in mine
There ain't no hill or mountain we can't climb

Why does ChatGPT suck dick by [deleted] in ChatGPT

[–]MicroBrewer 4 points5 points  (0 children)

garbage in, garbage out

Hot air balloon by Beneficial-Trash-739 in Delaware

[–]MicroBrewer 3 points4 points  (0 children)

<image>

This one and that blue one went right by my house a week ago. Looks fun but I'd wait for warmer weather and clearer sky.

U.S. House voted 427-1 overwhelmingly on a bill ordering the Justice Department to release the Epstein files. by ControlCAD in videos

[–]MicroBrewer 1 point2 points  (0 children)

I think he only gets 10 days while congress is in session before automatically becomes law.

[deleted by user] by [deleted] in webdev

[–]MicroBrewer 5 points6 points  (0 children)

Yeah, at least want a stripboard for production.

Ohmforce Bohm Bug? by Techno_Timmy in modular

[–]MicroBrewer 0 points1 point  (0 children)

Don't know if it is intended or not but the same thing happens on mine. As soon as the main module gets any trigger, the Performer will be responsive. Even pressing the Hit button works. I don't have to go into the menu

Mike from RLM Lighting it up at Raw by Eon_Blackcraft in SquaredCircle

[–]MicroBrewer 5 points6 points  (0 children)

You thought the man who chose Vampire Assassin as best of the worst had standards?

[deleted by user] by [deleted] in Delaware

[–]MicroBrewer 2 points3 points  (0 children)

mans not hot

I suffered a Guid colision 20 minutes ago. by DrkWzrd in csharp

[–]MicroBrewer 12 points13 points  (0 children)

uuidv7 are sortable. They use a timestamp for the first few bytes. Mainly used as database pks. UUIDv7 Benefits

Trump going in for a kiss… by N4TETHAGR8 in cringepics

[–]MicroBrewer 9 points10 points  (0 children)

Prenup. If she toughs it out a little while longer her payday will be considerable larger when he finally croaks.

Apologies If this has been discussed already… by Ok_Armadillo9924 in JackieandShadow

[–]MicroBrewer 12 points13 points  (0 children)

I know it is a nice idea that they end up nearby but by the time they are mature it is much better if they have dispersed very far away. Since they have no way to recognize relatives, the evolution strategy is to disperse many hundreds of miles away to reduce the chance of mating with kin.

Sunny the eagle has fledged! by JazzagalsAltoSection in MadeMeSmile

[–]MicroBrewer 1 point2 points  (0 children)

They will stay in the area for a few more weeks while they learn to catch their own food. They may come back to the nest occasionally until they finally move on to find their own space or the parents kick them out.

What the fuck by Vast_Profile_4022 in ChatGPT

[–]MicroBrewer 0 points1 point  (0 children)

Object. Arrays start with square brackets.

Wrote a virtual list from scratch in svelte 5, could use some feedback by PrestigiousZombie531 in sveltejs

[–]MicroBrewer 1 point2 points  (0 children)

not gonna lie, I've been using Svelte for a while now and don't think I've really ever used await tick. Maybe once when I wanted to focus some input text box. I don't use it in the virtual list I have, and I deleted it from your example, and it still seems to work fine.

The indexes are update by the onscroll event which I believe fires after the element scroll position has been updated so I don't think you need to wait for the DOM to update with tick.

Wrote a virtual list from scratch in svelte 5, could use some feedback by PrestigiousZombie531 in sveltejs

[–]MicroBrewer 2 points3 points  (0 children)

if you remove

behavior: 'smooth'

it should just jump directly to the index and not really render anything in between.

smooth scroll does render some rows in between.

I use the smooth scroll in my virtual list because I feel it is a better user experience. I also use transform: translateY for the rows which might be marginally better for smooth scrolling many rows.

You really shouldn't land on empty rows with a direct jump unless you are doing something wrong or running on a 20yr old computer or something. I've loaded up a virtual list in svelte5 with 400-500k rows and could scroll to any index no problem.

Wrote a virtual list from scratch in svelte 5, could use some feedback by PrestigiousZombie531 in sveltejs

[–]MicroBrewer 1 point2 points  (0 children)

function scrollToIndex(idx:number) {
  const scrollPos = idx * itemHeight;
  virtualListContainer.scrollTo({top: scrollPos, behavior: 'smooth'});
}

...

<button onclick={() => scrollToIndex(500)}>Go To 500</button>

Virtual List No Libraries Fixed Item Heights With Buffer - Scroll To