Skip to content

Commit 723724c

Browse files
Remove react-query workaround. Bump medusa-react (#108)
1 parent b205f49 commit 723724c

File tree

3 files changed

+16
-22
lines changed

3 files changed

+16
-22
lines changed

next.config.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
const { withStoreConfig } = require("./store-config")
22
const store = require("./store.config.json")
3-
const path = require("path")
43

54
module.exports = withStoreConfig({
65
features: store.features,
76
reactStrictMode: true,
87
images: {
98
domains: ["medusa-public-images.s3.eu-west-1.amazonaws.com", "localhost"],
109
},
11-
webpack: (config, options) => {
12-
if (options.isServer) {
13-
config.externals = ["@tanstack/react-query", ...config.externals]
14-
}
15-
const reactQuery = path.resolve(require.resolve("@tanstack/react-query"))
16-
config.resolve.alias["@tanstack/react-query"] = reactQuery
17-
return config
18-
},
1910
})
2011

2112
console.log("next.config.js", JSON.stringify(module.exports, null, 2))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@tanstack/react-query": "^4.22.4",
3232
"clsx": "^1.1.1",
3333
"lodash": "^4.17.21",
34-
"medusa-react": "^4.0.3",
34+
"medusa-react": "^4.0.4",
3535
"next": "^12.2.0",
3636
"react": "17.0.2",
3737
"react-country-flag": "^3.0.2",

yarn.lock

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,16 @@
591591
retry-axios "^2.6.0"
592592
uuid "^9.0.0"
593593

594+
"@medusajs/medusa-js@^1.3.8":
595+
version "1.3.8"
596+
resolved "https://registry.yarnpkg.com/@medusajs/medusa-js/-/medusa-js-1.3.8.tgz#f94726386cb4f00adcc306cc4247dfb0bbd86232"
597+
integrity sha512-yDiQDoaE45kSwRNScPff+icXK+YoJiYlSzcjazhuXiJWj1L6QG6uqevYY4hZQcjQejtNw2IzE86YSH0+V6xLAg==
598+
dependencies:
599+
axios "^0.24.0"
600+
qs "^6.10.3"
601+
retry-axios "^2.6.0"
602+
uuid "^9.0.0"
603+
594604
"@medusajs/medusa@^1.7.5":
595605
version "1.7.5"
596606
resolved "https://registry.yarnpkg.com/@medusajs/medusa/-/medusa-1.7.5.tgz#92b3229352db3737560472864ee50eb9c2ede858"
@@ -4523,11 +4533,6 @@ locate-path@^5.0.0:
45234533
dependencies:
45244534
p-locate "^4.1.0"
45254535

4526-
lodash-es@^4.17.21:
4527-
version "4.17.21"
4528-
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee"
4529-
integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==
4530-
45314536
lodash.defaults@^4.2.0:
45324537
version "4.2.0"
45334538
resolved "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-4.2.0.tgz#d09178716ffea4dde9e5fb7b37f6f0802274580c"
@@ -4707,14 +4712,12 @@ medusa-core-utils@^1.1.31, medusa-core-utils@^1.1.32, medusa-core-utils@^1.1.37:
47074712
joi "^17.3.0"
47084713
joi-objectid "^3.0.1"
47094714

4710-
medusa-react@^4.0.3:
4711-
version "4.0.3"
4712-
resolved "https://registry.yarnpkg.com/medusa-react/-/medusa-react-4.0.3.tgz#ae6d313d3be0f2e4900d83a45348635df432ec66"
4713-
integrity sha512-JuKlcIZjhzlBJMzS/aMCDPt/75S1cljx6VOBLeOpepB1h44jkqebqdPHkuIB2QU9RlzkHonpMTw8Qr+N1mBaSQ==
4715+
medusa-react@^4.0.4:
4716+
version "4.0.4"
4717+
resolved "https://registry.yarnpkg.com/medusa-react/-/medusa-react-4.0.4.tgz#84f96dc1e613b1979e7534758b6c72fd26c87317"
4718+
integrity sha512-0epeLgDZ+A2jtd9SCzaXrLhUSbzRr0osgmdABFBD4zPCr0qSAH+WaWCXAdEEQbb5SlwgvnVpJ+Ly4Iw1xj73mg==
47144719
dependencies:
4715-
"@medusajs/medusa-js" "^1.3.7"
4716-
lodash "^4.17.21"
4717-
lodash-es "^4.17.21"
4720+
"@medusajs/medusa-js" "^1.3.8"
47184721

47194722
[email protected], medusa-telemetry@^0.0.16:
47204723
version "0.0.16"

0 commit comments

Comments
 (0)