vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

Massload plugin only loads one time and does not execute 2nd time #2774

Closed CODE-AXION closed 1 month ago

CODE-AXION commented 8 months ago

i have implemented ajax seach,lazy loaded nodes and they all work fine

but the problem was normal search was hitting too many requests so i enabled massload plugin which also works fine but it only works on first hit or call when i try to search other string it does not work

its only executed only 1 time here are the pic:

first time when i search it works perfectly: image

2nd time when i search it does not work. image

i have seen similar issues here of massload being only executed 1 time .

@vakata please do solve this issue , it would be much appreciated !

thanks : )

vakata commented 7 months ago

How is the plugin configured? For me it works like so:

                'massload' : {
                    'url' : "...",
                    'data' : function (ids) {
                        return { 'id' : ids.join(',') };
                    },
                    'dataType' : 'json',
                    'type' : 'GET'
                },