Overrides to allow canceling the load of the remaining pages of a store.
- Install using npm (or yarn)
npm install '@agile-central-technical-services/utils-cancel-store-load' -D
- Add the file to the
javascript
section ofconfig.json
"javascript": [ "node_modules/@agile-central-technical-services/utils-cancel-store-load/index.js", ...
_update: function() {
this.setLoading(true);
// If there is a current chart store, force it to stop loading pages
// Note that recreating the grid will then create a new chart store with
// the same store ID.
var storyStore = Ext.getStore('storyStore');
if (storyStore) {
storyStore.cancelLoad();
}
To Update
npm version patch
- This will update the package.json to a new version and create a git tag (e.g.v1.0.1
). It will also run thepostversion
script to push the changes and tag to GitHub.npm publish --access public
- This will publish the new version to npmjs.org- Create the new release in `utils-cancel-store-load/releases'