@orderly.network/hooks 0.0.32 → 0.0.33

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/dist/index.js CHANGED
@@ -1020,6 +1020,7 @@ var parseHolding = (holding, markPrices) => {
1020
1020
  var usePositionStream = (symbol, options) => {
1021
1021
  var _a;
1022
1022
  const symbolInfo = useSymbolsInfo();
1023
+ useAccount();
1023
1024
  const { data: accountInfo } = usePrivateQuery("/v1/client/info");
1024
1025
  const { data: holding } = usePrivateQuery(
1025
1026
  "/v1/client/holding",
@@ -1033,7 +1034,9 @@ var usePositionStream = (symbol, options) => {
1033
1034
  const { data, error } = usePrivateQuery(`/v1/positions`, __spreadProps(__spreadValues({
1034
1035
  // revalidateOnFocus: false,
1035
1036
  // revalidateOnReconnect: false,
1036
- dedupingInterval: 5e3
1037
+ dedupingInterval: 5e3,
1038
+ keepPreviousData: false,
1039
+ revalidateIfStale: true
1037
1040
  }, options), {
1038
1041
  formatter: (data2) => data2,
1039
1042
  onError: (err) => {