We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
8.1
6.5.6.1
I expect the following code to run on each successfull save
State.watch( (state) => state.swOrderDetail.savedSuccessful, (newValue, oldValue) => { if (newValue === true) { console.log('Woho!'); } } );
The code only runs once.
Implement plugin with the above code.
const {State} = Shopware; Shopware.Component.override('sw-order-detail', { methods: { async onSaveEdits() { State.commit('swOrderDetail/setSavedSuccessful', false); await this.$super('onSaveEdits'); } } });
The text was updated successfully, but these errors were encountered:
We found the following existing issues which may help or are related to your topic:
Sorry, something went wrong.
No branches or pull requests
PHP Version
8.1
Shopware Version
6.5.6.1
Expected behaviour
I expect the following code to run on each successfull save
Actual behaviour
The code only runs once.
How to reproduce
Implement plugin with the above code.
How to fix
The text was updated successfully, but these errors were encountered: