Note: This is the same case for all the places where local tracked variable is used for tracking the state.
pull the change or make the same changes to local clone from above. Visit: http://localhost:4201/#/examples/block-usage
Try to update the string.
Put a debugger at the get and set for the filterString.
https://github.com/SparshithNR/ember-models-table/blob/9a501ab8fb5a59135000278039f1c584d9155b5d/addon/components/models-table.ts#L334-L341
none
ember-models-table version: any version
ember version: any version
ember-data version: any version
ember-cli version: any version
node version: any version
npm or yarn version: any version
- Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
- The fix is to change the how
_filterString is being setup.
@tracked
protected _filterString = this.args.filterString ?? '';
protected get filterString(): string {
return this._filterString;
}
protected set filterString(v: string) {
this._filterString = v;
}
or
@trackedReset('args.filterString')
protected _filterString = this.args.filterString ?? '';
protected get filterString(): string {
return this._filterString;
}
protected set filterString(v: string) {
this._filterString = v;
}
I'm submitting a ...
[ ] support requestAsk in the official Ember Discord server.What is the current behavior?

The
globalFilterdo not get updated when consumer of EMT passesfilterStringcase, because of when theget filterStringis evaluated thethis.args.filterStringalways exists. So we can never get the updated value in the filterStringNote: This is the same case for all the places where local
trackedvariable is used for tracking the state.The filterString do not get updated if user provides a filterString SparshithNR/ember-models-table#1
pull the change or make the same changes to local clone from above. Visit: http://localhost:4201/#/examples/block-usage
Try to update the string.
Put a debugger at the get and set for the filterString.
https://github.com/SparshithNR/ember-models-table/blob/9a501ab8fb5a59135000278039f1c584d9155b5d/addon/components/models-table.ts#L334-L341
[Bug] What is the expected behavior?
The
filterStringupdates[Feature] What is the motivation / use case for changing the behavior?
none
[Support] What exactly you try to do?
none
Please tell us about your environment:
ember-models-tableversion: any versionemberversion: any versionember-dataversion: any versionember-cliversion: any versionnodeversion: any versionnpmoryarnversion: any version_filterStringis being setup.or