Skip to content

Commit 6dd2e7f

Browse files
authored
Merge pull request #3493 from ecency/bugfix/sdk-2383-drop-initialdata-guard
chore: bump @ecency/sdk to 2.3.83 and drop the wallet history initialData guard
2 parents f218f12 + 27a3b02 commit 6dd2e7f

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@babel/preset-typescript": "^7.26.0",
3939
"@babel/runtime": "^7.26.7",
4040
"@ecency/render-helper": "^2.5.23",
41-
"@ecency/sdk": "^2.3.82",
41+
"@ecency/sdk": "^2.3.83",
4242
"@esteemapp/react-native-autocomplete-input": "^4.2.1",
4343
"@esteemapp/react-native-multi-slider": "^1.1.0",
4444
"@native-html/iframe-plugin": "^2.6.1",

src/providers/queries/walletQueries/walletQueries.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,10 @@ export const useActivitiesQuery = (symbol: string, layer: PortfolioLayer) => {
396396

397397
const chainQuery = useInfiniteQuery({
398398
...chainQueryOptions,
399-
// Guard, not a workaround. These options used to seed
400-
// `initialData: { pages: [], pageParams: [] }` for the web's server-prefetched
401-
// pages; against this client's staleTime of 60s that empty seed reads as fresh
402-
// data and suppresses the very first fetch, so the history renders empty and
403-
// nothing reports an error. @ecency/sdk 2.3.80 dropped it, and no SDK test pins
404-
// its absence, so keep this until one does.
405-
initialData: undefined,
399+
// No initialData override needed: these options used to seed an empty page set
400+
// that read as fresh against this client's 60s staleTime and suppressed the very
401+
// first fetch. @ecency/sdk 2.3.80 dropped the seed and 2.3.83 pins its absence
402+
// with a spec, so the contract is enforced upstream.
406403
enabled: !!username && isHive,
407404
});
408405

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,10 +1210,10 @@
12101210
url "^0.11.0"
12111211
xss "^1.0.9"
12121212

1213-
"@ecency/sdk@^2.3.82":
1214-
version "2.3.82"
1215-
resolved "https://registry.yarnpkg.com/@ecency/sdk/-/sdk-2.3.82.tgz#74e9cfcb278de2f810446262c3516db539c8340d"
1216-
integrity sha512-8kYahuQ8CcCDimKsze22GXCziyv4fQDAyshj8QYQEySVFiMj0sHU06F2g0IZ+tg+pufpcImp55JQae+a65naYQ==
1213+
"@ecency/sdk@^2.3.83":
1214+
version "2.3.83"
1215+
resolved "https://registry.yarnpkg.com/@ecency/sdk/-/sdk-2.3.83.tgz#c61382f9ff8a16eb194811eee0e157b2c9502674"
1216+
integrity sha512-DXzv++9jHGaSKGbcIxqdTZpfCSjUSEFkQxime0Fx+qk5l+6X4kdyMdBpWm/hUiSaDkZAPv7rlbYluiRYtN0vZg==
12171217
dependencies:
12181218
"@noble/ciphers" "^2.1.1"
12191219
"@noble/curves" "^2.0.1"

0 commit comments

Comments
 (0)