-
-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Auto Inject Assets: Only if component rendered #1683
Conversation
Regression from 65ce494 rappasoft#1371 Fixes: rappasoft#1587 Check if component is instanceof DataTableComponent so as not to inject on every livewire page, only ones with a datatable component
Thanks for the tag! I'll do my absolute best to give it a look tomorrow, as then I'm not about for a week or two. The injection code needs another update in general as well, as there's some more core stuff that I've not gotten around to merging in from Livewire core just yet, which albeit were minor tweaks. Also intending to wrap up the code for "public" usage properly in case people do want to publish it and use it that way, but that's probably a month away. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v3-development #1683 +/- ##
====================================================
- Coverage 88.16% 88.14% -0.03%
- Complexity 1314 1316 +2
====================================================
Files 123 123
Lines 3110 3113 +3
====================================================
+ Hits 2742 2744 +2
- Misses 368 369 +1 ☔ View full report in Codecov by Sentry. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@lrljoe ? |
Apologies, been a bit busy of late! Will look to get this reviewed and merged in this week. |
Not forgotten! Just need to spin up a fresh test environment to validate this, as I don't use the injection approach! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@lrljoe |
Re-Opening as this is just something I've overlooked and not had time to review properly. |
Changed base branch to "development" (where I'm currently working) Note that I definitely need to bring the auto-injection back up to the current approach with Livewire core approach, as it's been a while since I worked on that. |
Definitely keen to implement this, however - I've run a couple of tests on this, as it doesn't seem to be producing consistent behaviour. For example:
What I'm seeing when this happens is - the JS which populates/presents various options (e.g. the Filter dropdown) isn't firing until an additional action is fired. (e.g. column sorting). If you navigate directly to a page with a table (or don't use wire:navigate), then it works as you'd expect. So I'll need to pop some bits open to see what's actually happening under the hood! |
I don't use |
Yeah, I think it's an issue with wire:navigate and loading components in, need to pop open the livewire core code and verify tho |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Regression from 65ce494 #1371
Fixes: #1587
Check if component is instanceof DataTableComponent so as not to inject on every livewire page, only ones with a datatable component
All Submissions:
New Feature Submissions:
Changes to Core Features: