-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Data Table 'trackBy must be a function, but received undefined' #1652
Comments
I've reverted my dependencies back to angular 2.2.1 just like it was before, and the table renders with no problem, without any further changes. |
Same here, upgraded to PrimeNg 1.1.1 and Angular 2.4.1, get same error for dataTables |
I can also confirm that it works with PrimeNG 1.1.1 and Angular 2.4.0, however it does break with Angular 2.4.1 then... |
Created an issue at; On our side, we can create a dummy function as default value, @Mrtcndkn please do so and release 1.1.2 as DataTable is unusable now with 2.4.1. |
1.1.2 is released it's solving this problem for now |
I'm not sure that the default implementation makes it:
Because now everything is tracked by
A haven't had time to test this, but I'm pretty sure this can make some performance problems, since |
I'm submitting a ... (check one with "x")
Current behavior
I was using primeng 1.0.0 and angular 2.2.1. I've updated primeng to 1.1.1 and angular to 2.4.1
On the last version Datatable worked fine, without the rowTrackBy (I don't need it)
After I updated, the same datatable, without any changes, throws me this error and doesn't render any rows.
Expected behavior
Show rows of the data table .
Minimal reproduction of the problem with instructions
Use simple datatable primeng on angular 2.4.1 and primeng 1.1.1
Environment:
WebStorm 2016.3
Angular version: 2.4.1
PrimeNG version:1.1.1
Browser:all
Stack trace:
files.zip
The text was updated successfully, but these errors were encountered: