@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.mjs CHANGED
@@ -1011,6 +1011,7 @@ var parseHolding = (holding, markPrices) => {
1011
1011
  var usePositionStream = (symbol, options) => {
1012
1012
  var _a;
1013
1013
  const symbolInfo = useSymbolsInfo();
1014
+ useAccount();
1014
1015
  const { data: accountInfo } = usePrivateQuery("/v1/client/info");
1015
1016
  const { data: holding } = usePrivateQuery(
1016
1017
  "/v1/client/holding",
@@ -1024,7 +1025,9 @@ var usePositionStream = (symbol, options) => {
1024
1025
  const { data, error } = usePrivateQuery(`/v1/positions`, __spreadProps(__spreadValues({
1025
1026
  // revalidateOnFocus: false,
1026
1027
  // revalidateOnReconnect: false,
1027
- dedupingInterval: 5e3
1028
+ dedupingInterval: 5e3,
1029
+ keepPreviousData: false,
1030
+ revalidateIfStale: true
1028
1031
  }, options), {
1029
1032
  formatter: (data2) => data2,
1030
1033
  onError: (err) => {