We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f809ad2 commit 3f79e77Copy full SHA for 3f79e77
src/table.js
@@ -177,9 +177,10 @@ function sourceCache(loadSource) {
177
return (source, name) => {
178
if (!source) throw new Error("data source not found");
179
let promise = cache.get(source);
180
- if (!promise) {
+ if (!promise || (isDataArray(source) && source.length !== promise._numRows)) {
181
// Warning: do not await here! We need to populate the cache synchronously.
182
promise = loadSource(source, name);
183
+ promise._numRows = source.length; // This will be undefined for DatabaseClients
184
cache.set(source, promise);
185
}
186
return promise;
0 commit comments