Opened 9 years ago

Closed 6 years ago

#10456 closed defect (wontfix)

Invalid data got from concurrent fetchs on ClientFilter

Reported by: dupa Owned by: Kris Zyp
Priority: high Milestone: tbd
Component: DojoX Data Version: 1.4.0b
Keywords: ClientFilter Cc:
Blocked By: Blocking:

Description

For example:

      store = new dojox.data.RailsStore({target: '/somethings', rootAttribute: 'something', cacheByDefault: true});
      for(var i = 0; i < 4; i++) {
        store.fetch({
          onComplete: function(items) {
            console.log(items);
          }
        });
      }

This renders the following in console:

[Object, Object, Object, Object, Object, Object, Object]
[undefined, undefined, undefined, undefined, undefined, undefined, undefined]
[]
[]

Here, the first callback gets valid data, the second gets an array of undefineds and the subsequent callbacks get just empty arrays. This appears to be the case only when the fetchs are concurrent and the data not yet cached. It also perfectly fits the situation when you want to bind 2 or more widgets to the same caching datastore (that's actually how I ran into this).

(observed against 1.4.0rc1)

Change History (2)

comment:1 Changed 9 years ago by Jared Jurkiewicz

Owner: changed from Jared Jurkiewicz to Kris Zyp

comment:2 Changed 6 years ago by Colin Snover

Resolution: wontfix
Status: newclosed

dojox/data is abandoned. Some dojox/data stores have been upgraded to use the Dojo Store API and can be found at https://github.com/kfranqueiro/dojo-smore.

Note: See TracTickets for help on using tickets.