flexsearch icon indicating copy to clipboard operation
flexsearch copied to clipboard

export keys are not correct

Open tiejunhu opened this issue 4 years ago • 3 comments

in current recur implementation of export, the result key is somehow got all connected with dot. so instead of "reg, cfg, map, ctx", now the exported keys are "reg, reg.cfg, reg.cfg.map, reg.cfg.map.ctx"

tiejunhu avatar Sep 30 '21 11:09 tiejunhu

I submitted a PR trying to fix this issue. I pass the field to the "async" func and let async call export with this parameter to avoid nested export key.

tiejunhu avatar Oct 08 '21 02:10 tiejunhu

Should we just put something in docs in the meantime? If this isn't being merged, then point out that file names are wrong, rather than that the filename is the first param to be passed in.

janat08 avatar May 30 '22 09:05 janat08

Yes, this took me hours to figure out. Would be very helpful to flag it in the docs with a workaround. Here's what I used:

 const fixedKey = key.split(".").slice(-1)[0];

g-harel avatar Jun 13 '22 03:06 g-harel

This is now fixed in v0.7.23 Further improvements to provide Promise.all() compatible export ist coming in next version.

ts-thomas avatar Oct 03 '22 13:10 ts-thomas