@tellescope/react-components 1.170.0 → 1.171.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellescope/react-components",
3
- "version": "1.170.0",
3
+ "version": "1.171.0",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -47,13 +47,13 @@
47
47
  "@reduxjs/toolkit": "^1.6.2",
48
48
  "@stripe/react-stripe-js": "^2.9.0",
49
49
  "@stripe/stripe-js": "^1.52.1",
50
- "@tellescope/constants": "^1.170.0",
51
- "@tellescope/sdk": "^1.170.0",
52
- "@tellescope/types-client": "^1.170.0",
53
- "@tellescope/types-models": "^1.170.0",
54
- "@tellescope/types-utilities": "^1.170.0",
55
- "@tellescope/utilities": "^1.170.0",
56
- "@tellescope/validation": "^1.170.0",
50
+ "@tellescope/constants": "^1.171.0",
51
+ "@tellescope/sdk": "^1.171.0",
52
+ "@tellescope/types-client": "^1.171.0",
53
+ "@tellescope/types-models": "^1.171.0",
54
+ "@tellescope/types-utilities": "^1.171.0",
55
+ "@tellescope/utilities": "^1.171.0",
56
+ "@tellescope/validation": "^1.171.0",
57
57
  "@typescript-eslint/eslint-plugin": "^4.33.0",
58
58
  "@typescript-eslint/parser": "^4.33.0",
59
59
  "css-to-react-native": "^3.0.0",
@@ -84,7 +84,7 @@
84
84
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
85
85
  "react-native": "^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.71.0"
86
86
  },
87
- "gitHead": "d9bbecc704e9ecd06d59ffbdaa155879a109c925",
87
+ "gitHead": "a9948a5ee7adeab6f1c4c56c5f7c67ab21b951be",
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  }
@@ -1767,9 +1767,10 @@ const useDatabaseChoices = ({ databaseId='', field, otherAnswers } : { databaseI
1767
1767
  const session = useResolvedSession()
1768
1768
  const [renderCount, setRenderCount] = useState(0)
1769
1769
 
1770
+ // todo: make searchable, don't load all
1770
1771
  useEffect(() => {
1771
1772
  if (choicesForDatabase[databaseId]?.done) return
1772
- if (renderCount > 10) return // limit to 5000 entries / prevent infinite looping
1773
+ if (renderCount > 100) return // limit to 50000 entries / prevent infinite looping
1773
1774
  const choices = choicesForDatabase[databaseId]?.records ?? []
1774
1775
  const lastId = choicesForDatabase[databaseId]?.lastId
1775
1776