我正在我的应用程序中使用交互式表格react-table
。
我的目标是制作一个表格,当单击表格单元格中的按钮时,每行都可以编辑。
我设计了一个EditableCell
像下面这样的。
import React, {useState} from "react";
export const EditableCell = ({
value: initialValue,
row: Row,
column: {id, editable, state},
isEditing,
updateItem, // This is a custom function that we supplied to our table instance
}) => {
// We need to keep and update the state of the cell normally
const [value, setValue] = React.useState(initialValue);
const {index} = Row;
const onChange = e => {
setValue(e.target.value);
};
// We'll only update the external data …
Run Code Online (Sandbox Code Playgroud) 我尝试更改令牌基本 URL 以在 opensea.io 上显示 NFT 的新图像。但不会立即更新。
有一种方法可以通过在 Rikeby 测试网上指定force_update=true 来进行更新。
但我不知道如何在主网上更新它。有可能吗?
任何帮助将不胜感激。
我想了解有关 ESLinting 缓存的更多详细信息。
ESLinting 使用什么缓存机制?如果是的话,Windows和Linux上的缓存文件在哪里?
有没有办法在命令行上清理缓存?
React-TypeScript 项目有推荐的 ESLinting 设置吗?