小编k_k*_*rrs的帖子

Expo 49 Gradle 在本地运行 eas build 进行开发时出现错误

我正在尝试在本地构建一个 Expo React Native 应用程序以在 Android 模拟器上进行测试,因为我使用的是不支持 Expo Go 的react-native-auth0。但是,当我尝试构建时,我收到此错误:

[RUN_GRADLEW] FAILURE: Build failed with an exception.
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] A problem occurred configuring root project 'FIRST2'.
[RUN_GRADLEW] > Could not determine the dependencies of null.
[RUN_GRADLEW]    > Could not resolve all task dependencies for configuration ':classpath'.
[RUN_GRADLEW]       > Could not resolve expo.modules:expo-dev-launcher-gradle-plugin.
[RUN_GRADLEW] Required by:
[RUN_GRADLEW]             project :
[RUN_GRADLEW] > No matching variant of project :expo-dev-launcher-gradle-plugin
[RUN_GRADLEW] was found. The consumer was configured to find
[RUN_GRADLEW] …
Run Code Online (Sandbox Code Playgroud)

android gradle react-native expo

5
推荐指数
1
解决办法
1289
查看次数

是否可以在没有 QueryArgs 的情况下定义 RTK 查询?

RTK 查询中查询的定义是query<ResultType, QueryArg>。所有这些对于我实际需要向 API 发送参数的查询来说都很好。但是,我有一些端点不需要发送任何内容(例如 getAllX)。我可以在模板中将什么作为 QueryArg 传递?它不会接受任何一个争论。

到目前为止,我已经使用了像undefined和 之类的类型null来表示不需要发送任何内容,但是当您使用 hook: 时它看起来很难看,const {...} = useGetXQuery(undefined)而且我很确定必须有更好的方法,但是在互联网上搜索没有结果。

typescript reactjs redux redux-toolkit rtk-query

4
推荐指数
1
解决办法
3403
查看次数