I'm trying to conditionally show a tab based on url name, I have a normal edit resource page with /edit endpoint and another page with custom endpoint that is using Edit Resource.
When I'm on /edit endpoint I want to hide some tab and when I'm on custom endpoint I want to show that tab, which works to certain point when it comes to only refreshing the page.
If I dump request in visible() method on normal refresh I get multiple "/livewire/update" in dump, but in DOM I can see it has "/app/1/profiles/7/edit" uri (which is okay when I'm simply loading the page, since it's working as intended).
However, when submitting the form and dumping request it's as if things break at DOM level and the tab simply gets shown. I also noticed when I change date in some input field the tab gets shown*.
I'm not sure if there's another way of doing this, I tried to store things into session but couldn't get it to work correct and it takes some work to manage storing correct values in session. It also seems as if visible() method gets called multiple times for some reason and makes it even more weird to store values into session, since it's firing multiple times for different things.
Not sure what to do here anymore, seems like it should be quite simple to implement this, but now it got a bit more complicated.