Josh Hanley πŸ‡¦πŸ‡Ί's Avatar

Josh Hanley πŸ‡¦πŸ‡Ί

@joshhanley.au.bsky.social

Working fulltime on fluxui.dev and core contributor to @LaravelLivewire. Sailing, Camping, Web Developer using PHP/ Laravel/ Livewire

2,153 Followers  |  200 Following  |  491 Posts  |  Joined: 22.10.2024  |  2.2073

Latest posts by joshhanley.au on Bluesky

Soon ℒ️

30.07.2025 22:11 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

To all of those social butterflies in Denver - enjoy Laracon!

Don’t forget to keep an eye out for someone seeming on the outer, someone needing to feel included, someone needing a smile.

There are lots of invisible developers out there.

Try to do something that can help others feel seen.

28.07.2025 09:48 β€” πŸ‘ 30    πŸ” 8    πŸ’¬ 0    πŸ“Œ 0
How to save datetimes for future events - (when UTC is not the right answer) Imagine that it’s January 2015 and you’re making an appointment in a calendar application for ameeting that will take place in Santiago, Chile on the April 3...

Here's another great article that changed how I viewed storing dates/times www.creativedeletion.com/2015/03/19/p...

23.07.2025 22:22 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Thankfully, while events aren't fun to deal with, they are definitely reliable. I've been using this pattern even since v2 for shared modals.

22.07.2025 03:27 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Yep! Just tested this and yeah it works as I was hoping 😁

22.07.2025 03:25 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

I think I know what you want and it's coming in v4 πŸ€«πŸ‘€ (if it works the way I'm hoping it will πŸ˜†)

22.07.2025 03:18 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yeah the main reason for the dispatch is, what if you click edit on one user, then escape out and then click edit on a different user? The modal comp can't mount twice. You could potentially do that if you had inline modals but that adds to the DOM. I just have one edit-user modal comp for the page.

22.07.2025 03:16 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I'd love to know the answer to this too πŸ˜…

22.07.2025 03:12 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I then have loading inside the modal, which `wire:target` the edit method, to show the loading state and hide the modal contents.

22.07.2025 03:02 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yep, that's how I do it. I have a button that has `wire:click="$dispatch('edit-user', {{$user->id}})"` and it is wrapped in a `flux:modal.trigger` component, which opens the modal.

My modal component has a listener for the edit-user event on my `edit($userId)` method.

22.07.2025 03:02 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

One component for the page and another for the modal 😁

22.07.2025 02:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Ahh! Yep, that'll do it. What do you use that for?

21.07.2025 01:33 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Actually those dates are off by a day in comparison to the date inside the element πŸ€”

21.07.2025 01:22 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yeah Flux uses browser locale based date objects to get the individual dates. But it should only be rendering the day and not the rest of it.

21.07.2025 01:21 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Sadly not. If you can’t work it out, happy to jump on a call to see if we can get to the bottom of it.

21.07.2025 01:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

Very strange! Just tested locally and I couldn’t get it to break πŸ˜… thought maybe it was an issue with date picker after flux scripts or something. But it doesn’t function at all then πŸ˜‚

21.07.2025 01:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Ok thanks. I’ll have a quick play and see if I can replicate it. Does seem odd styles wouldn’t be there initially but be fine after any interaction

21.07.2025 00:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Nope! I’ll test it out. Assuming it’s nothing fancy, just date picker inside a fly out modal?

20.07.2025 23:56 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Haha was just keeping them for a little while after I migrated to digital ocean. Probably should clean them up but yeah it’s not worth it πŸ˜‚

17.07.2025 08:18 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Yeah same, mines like $1 for some old RDS snapshots πŸ˜‚

17.07.2025 07:24 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yeah I dunno πŸ€·β€β™‚οΈ guess we’ll find out when the next invoices are sent πŸ˜‚

17.07.2025 05:24 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Screenshot of Amazon email informing of the change to an offical email address, flagged as spam by gmail.

Screenshot of Amazon email informing of the change to an offical email address, flagged as spam by gmail.

Even gmail thinks it's a scam πŸ˜‚

17.07.2025 05:15 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yes. Yes they should! 😁

15.07.2025 01:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Going to test this out when I get a moment and will see if I can make the docs clearer or fix it if somethings not working properly.

11.07.2025 02:21 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Ah bugger. Well happy to help fix it if you work it out 😁

11.07.2025 02:20 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

You got it 😁 I much prefer it over here!

11.07.2025 02:19 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

No worries!

11.07.2025 02:16 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

It doesn't remove the dark classes from your markup, it just stops Flux from controlling dark mode appearance on your site. By default it detects users system preferences and allows them to override it using a toggle.

11.07.2025 01:16 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I personally don’t use it when testing my components. But is there anything we could do to make it better? Why do you find it fragile?

09.07.2025 22:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

But yeah we should also document it as people don’t seem to notice it on the Echo docs, and it trips a lot of people up.

09.07.2025 22:06 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@joshhanley.au is following 20 prominent accounts