Загрузка видео...

Не удалось загрузить видео

На главную

stumbled on a new Livewire pattern I'm pretty excited about - check it

45,677 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 11

Фото профиля Caleb Porzio
Caleb Porzio2 лет назад

I'll probably record a screencast or something showing you how soon

Фото профиля Ryan Bilesky
Ryan Bilesky2 лет назад

Is the secret to use wire:model.optimistic? And if not could it be made that simple? Or maybe it's already simple enough idk.

Фото профиля Caleb Porzio
Caleb Porzio2 лет назад

ooooh that'd be a pretty cool API

Фото профиля Birk Jernström
Birk Jernström2 лет назад

Your short-form demos are 🔥 Really impressed with what you're building with Livewire! Just sent a DM (it's not a nudge to update Chrome) 🙊

Фото профиля Caleb Porzio
Caleb Porzio2 лет назад

hahaha, not updating chrome is my brand now, have to stay consistent with it

Фото профиля Ade
Ade2 лет назад

What happens if the server fails to fulfill the request? Does the item come back for the DELETE request?

Фото профиля Caleb Porzio
Caleb Porzio2 лет назад

I believe so yes

Фото профиля Lazarus / hx-pod / hypermedia-tv
Lazarus / hx-pod / hypermedia-tv2 лет назад

when I stumble on stuff it’s like “neat a new hot key for Terminal”. This is less a stumble and more a perfect 10 dismount

Фото профиля TJ Barber
TJ Barber2 лет назад

Dude doing things optimistically like this makes sense 90% of the time. Looks and performs so fluidly. I'm looking forward to that screencast!

Фото профиля Daniel Weaver
Daniel Weaver2 лет назад

Really interested in your method here. My initial thought would be to push/mutate items directly on $​wire.items array and then AlpineJS loop over those to render the items. Finally set a watcher on the $​wire.items and call an update method to do the server side logic.

Фото профиля Caleb Porzio
Caleb Porzio2 лет назад

right, so that's the way you would THINK to do it, but this is a much simpler way - maybe I'll record something demoing the technique tomorrow

Похожие видео