-
Notifications
You must be signed in to change notification settings - Fork 512
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
pipe called twice when st-template is used in pagination #388
Comments
Seeing same issue |
Here too. But if you use the stConfig.pagination.template, it got called only once. |
And what if you put the template in the $templateCache (to avoid the http request) ? |
+1, same issue |
Same issue here (st-template is in the $templateCache). The issue is not only with st-template: I have the same one with a simple ng-if to hide the pagination row if number of pages is 0 or 1 ("smartTable" is the smartTable controller that I'm exposing in the scope through a custom directive)
|
Having a similar issue here with pipe and pagination (without st-template). Initially my pipe function called twice with two trips to server, tried to play with pipe.delay as follows:
But the issue pops up on different clients (so sounds like a race condition somewhere). Not sure if this is a separate issue.. |
Having similar issue. Had this issue when using ng-if. Replacing it with ng-show fixed it. But sometimes it happens randomly. |
Hi, Here is the updated plunker with the issue fixed. http://plnkr.co/edit/rGTv2qOGGlvgzc767LKW?p=preview But has some problems... that's why I don't submit a PR, I hope @lorenzofox3 can take over now that the debugging work is done...
|
I encountered this issue with and without using st-template. Changing the pipe delay to 200ms seems to resolve it.
|
I'm also interested in fixing this issue. |
This also appears for st-sort-default.
|
I used my previous answer for a while and find out that it destroy my Table page caching system so I decided to increase the pipe delay to 400ms. I really don't like this because i see this delay maybe not the customer but i see it. |
Try to change |
Added parameter to the sort function which is only be used for the sortDefault behaviour for the first call. To fix the problem that the pipe called twice
Here's a plunker: http://plnkr.co/edit/IdQx5OQ9PgSiIMedOTSY
If you remove st-template it calls the pipe only once.
The text was updated successfully, but these errors were encountered: