create-ncblock 0.0.36 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/sdk-version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.0.
|
|
1
|
+
{"version":"0.0.35"}
|
|
@@ -451,7 +451,8 @@ function App() {
|
|
|
451
451
|
const manifest = useManifest()
|
|
452
452
|
const activeDataSourceKey =
|
|
453
453
|
Object.keys(manifest?.dataSources ?? {})[0] ?? "default"
|
|
454
|
-
const
|
|
454
|
+
const [queryLimit, setQueryLimit] = React.useState(20)
|
|
455
|
+
const query = useDataSource(activeDataSourceKey, { limit: queryLimit })
|
|
455
456
|
const colorTheme = theme === "dark" ? "dark" : "light"
|
|
456
457
|
const mappedAnalysis = analyzeRadarSchema(query.items)
|
|
457
458
|
const isUsingFallbackData = !mappedAnalysis.isReady
|
|
@@ -522,7 +523,7 @@ function App() {
|
|
|
522
523
|
queryError={query.error?.message}
|
|
523
524
|
hasMore={query.hasMore}
|
|
524
525
|
isLoading={query.isLoading}
|
|
525
|
-
onFetchMore={
|
|
526
|
+
onFetchMore={() => setQueryLimit(limit => limit + 20)}
|
|
526
527
|
/>
|
|
527
528
|
</div>
|
|
528
529
|
)
|
|
@@ -1704,7 +1704,8 @@ function App() {
|
|
|
1704
1704
|
}, [activeDataSourceKey, dataSourceKeys])
|
|
1705
1705
|
|
|
1706
1706
|
const queryKey = dataSourceKeys.length === 0 ? "default" : activeDataSourceKey
|
|
1707
|
-
const
|
|
1707
|
+
const [queryLimit, setQueryLimit] = React.useState(20)
|
|
1708
|
+
const query = useDataSource(queryKey, { limit: queryLimit })
|
|
1708
1709
|
const colorTheme = theme === "dark" ? "dark" : "light"
|
|
1709
1710
|
|
|
1710
1711
|
const mappedItems = query.items as TableRow[]
|
|
@@ -1800,7 +1801,7 @@ function App() {
|
|
|
1800
1801
|
onSelectDataSource={setActiveDataSourceKey}
|
|
1801
1802
|
hasMore={query.hasMore}
|
|
1802
1803
|
isLoading={query.isLoading}
|
|
1803
|
-
onFetchMore={
|
|
1804
|
+
onFetchMore={() => setQueryLimit(limit => limit + 20)}
|
|
1804
1805
|
isUsingFallbackData={isUsingFallbackData}
|
|
1805
1806
|
isCollectionEmpty={isCollectionEmpty}
|
|
1806
1807
|
queryError={query.error?.message}
|