如果用户没有任何权限显示react-admin的资源,他将无法登录,并收到以下消息: React-admin is properly configured.
Now you can add a first <Resource> as child of <Admin> 如果没有资源,我们如何显示登录页面和仪表板? const App = ({ classes }) => (
<React.Fragment>
<Admin
locale="fr"
i18nPro
在为react实现自定义布局之后,我得到了以下错误:
Violation: Could not find "store" in the context of "Connect(CustomMenu)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(CustomMenu)
我正在为react-admin实现自定义dataProvider。因为我们有许多数据类型,所以我想为不同的文件提供不同的资源。 但是,我在transactionProvider实现上遇到了typescript错误。 ? Type '(params: GetListParams) => Promise<{ data: Transaction[]; total: number; }>' is not assignable to type '<RecordType extends Record = Record>(params: GetLi
我是react-admin的新手,我正在尝试为我的旧API创建一个新的管理面板。因此,当我的数据提供程序执行API调用时,它会导致以下错误: The response to 'getList' must be like { data : [...] }, but the received data is not an array. The dataProvider is probably wrong for 'getList' 我的旧API的响应有各种数据字段,如{‘post’:[] }或{ 'users':[] }。如何使用这些字段名称而不是
我是非常新的反应-管理员和有困难,以获得数据到屏幕上。在我阅读了文档之后,我就是这样实现我的代码的。我能够在console.log of useEffect中获得数据,它是具有像id、fullName、emailId这样的对象键的对象数组。但是我无法将数据输入到列表中,这样textfield就可以接收数据并显示在屏幕上。
import * as React from "react";
import { useDataProvider } from 'react-admin';
import axios from 'axios'
import {
每次用户在react-admin中进行身份验证时,我都需要从自定义缩减程序中分派一个操作。根据这篇文章React-Admin: How can we dispatch a store action from within the authProvider code?,因为我不能访问我的身份验证提供者内部的redux商店,所以我必须创建一个传奇 这是我的代码: // index.ts
function App() {
return (
<Admin
dataProvider={dataProvider}
authProvider={authProvid
我正在创建一个使用Nextjs的React应用程序。 我真的想对我的BO使用react-admin。我试过test example,和react配合使用,它工作得很好。不幸的是,虽然我试图在next js中包含一些代码,但它不能工作。 我创建了/admin/dashboard.tsx文件,并添加了下一步代码(之前我自己测试过-工作代码): import * as React from 'react';
import PostIcon from '@material-ui/icons/Book';
import UserIcon from '@mater
我试图在一个react项目中使用多个数据提供程序,但是我有一个错误:
Warning: Missing translation for key: "dataProvider is not a function"
function.console.(anonymous function) @ index.js:1452
我的App.js是这样的
import React from 'react';
import { render } from 'react-dom';
import { Admin, Resource } from 'rea
使用,我创建了一个包含多个页面的示例列表应用程序,然后运行它。如果我打开列表中的另一页并选择编辑一行或删除它,则任务已经完成,但列表被重定向到第一页,这不利于用户体验。如果用户想查看多行并编辑它们,这将迫使他每次编辑时都返回到页面。我不确定这是一个如何提问,或一个错误或功能,应该张贴在github。我在多个react中测试了它--管理版本3.6.0、3.5.5、3.0.0,并且出现了相同的行为。
// in src/App.js
import * as React from "react";
import { Admin, Resource } from "react-
我使用jsonServerProvider,但无法获得我的快速Api数据
错误码
The response to 'getList' must be like { data : [...] }, but the received data is not an array. The dataProvider is probably wrong for 'getList'
我的反应-行政/数据提供.
import jsonServerProvider from "ra-data-json-server";
import {fetchUtils} fr
我正试图在我的项目中实现react admin,但是在呈现时我得到了以下消息。
Uncaught Error: Missing history prop. When integrating react-admin inside an existing redux Provider, you must provide the same 'history' prop to the <Admin> as the one used to bootstrap your routerMiddleware. React-admin uses this history for it