Replies: 4 comments 2 replies
-
|
I think a better approach would be to use events instead of directly updating the value. https://github.com/magewirephp/magewire/blob/main/docs/Features.md#browser-events |
Beta Was this translation helpful? Give feedback.
-
|
I found this in doc here. |
Beta Was this translation helpful? Give feedback.
-
|
Is this on Luma using RequireJS? |
Beta Was this translation helpful? Give feedback.
-
|
Yes. I have module to work with luma. And it works just after some timeout, So i think other event is needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I started to check this module and works great.
However i have problem when updating value from javascript.
My simple counter looks like this
after in js file
I see Current count proper value. However when it runs
ounterComponent.set('count', 300)it fails to 404https://app.magewire.test/magewire/undefined/livewire/message/counterWhen i put component inside setTimeout
Beta Was this translation helpful? Give feedback.
All reactions