Comments (8)
Hey, this is definitely on my radar for something to add.
I considered it a "nice to have" rather than "need" for the first release. Fear not, it will be coming soon though.
from megaphone.
Yeah, so a wire:poll would be a quick win but not keen on doing that for this package.
I will have some time coming up in the next few weeks so plan to look at this then as I would like this feature included for a project I "dog food" Megaphone with.
from megaphone.
Hey, apologies have been wanting to look at this, but having a 1-year-old child is time-consuming!
Thinking about it, I'd definitely consider a PR for this if we can make the wire:poll
conditional with a new boolean config setting. If we have an "enableWirePoll" config option that defaults to false, that would keep it turned off as default and anyone who updates the package won't be affected while still allowing people to turn it on if they wish.
That feels like a good compromise for now to me. And it should still be pretty easy to remove when I have a chance to look at a better alternative.
from megaphone.
Great, waiting for it, also i would like to thanks for this component is really useful.
from megaphone.
Would <div wire:poll>
be a quick win here, perhaps?
from megaphone.
Yeah, so a wire:poll would be a quick win but not keen on doing that for this package. I will have some time coming up in the next few weeks so plan to look at this then as I would like this feature included for a project I "dog food" Megaphone with.
Hi Mike,
While I completely understand your perspective on this matter, I believe it is an essential feature that many users would greatly benefit from. Without this feature, users would need to modify the source code itself, which could be inconvenient and time-consuming.
I would like to propose a solution that involves adding just two lines of code to implement the wire:poll
feature. This addition would provide users with the functionality they need while still allowing for easy removal once a better alternative becomes available. I believe this approach strikes a balance between addressing the user demand for the feature and ensuring flexibility in the long term.
If you are open to this suggestion, I would be more than happy to create a pull request to incorporate the wire:poll
feature into the package. I value your input and look forward to hearing your thoughts on this matter.
Thank you for your time and consideration.
Best regards,
Tito
from megaphone.
@mikebarlow Rather than a enableWirePoll
option, why not a pollInterval
option, which defaults to null, so that they can choose the wire:poll
interval.
from megaphone.
Yeah, that would also work for me.
from megaphone.
Related Issues (18)
- Clear notifications console command doesn't load in custom types HOT 1
- Cannot use ::class with dynamic class name HOT 3
- Livewire multiple root error in production HOT 2
- Marking unread notification HOT 2
- Admin component needs to merge in types HOT 1
- public $user : data of object and related objects visible for user HOT 9
- UI modifications. HOT 3
- Livewire 3 HOT 5
- Anonymous User Notifications HOT 4
- Route HOT 1
- Use wireui/heroicons for a more consistent looking iconset? HOT 1
- Multiple Notifiable models HOT 1
- Create blade directive to making including the megaphone css easier
- Improve the mark as read UX
- Fix readme line for megaphone css
- Add note regarding Alpine JS include
- Add link to example demo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megaphone.