from component is not re-rendering from after changing props.form
@daneformio đang làm issue này rồi.
Từ ngày 10/7/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
I am using Form-component with preloaded form json it is not refreshing the form on changing the value of fromProp of the Form tag
code im using :
class App extends Component {
constructor(props) {
super(props);
this.state = { currentUrl: "5c80b71c6bdc0f69544b4e22/", lastValue: {} }
}
formSubmitted = (value) => {
if (value.nextFormId) {
this.setState({ currentUrl: value.nextFormId })
}
}
componentDidMount() {
fetch(this.props.baseURL + this.state.currentUrl).then(this.handleFormIoResponce)
}
handleFormIoResponce = (responce) => {
responce.json().then(value => {
console.log(value)
this.setState({ lastValue: value })
})
}
render() {
let data = ""
return (
<Form form={this.state.lastValue} url={this.props.baseURL + this.state.currentUrl} onSubmit={this.formSubmitted} />
);
}
}
export default App;
- Ngôn ngữ chính
- TypeScript
- Star
- 371
- Fork
- 309
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của formio/react
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
onChange `modified` property remains false when file component is updatedCó thể làm lại được @ZenMasterJacob20011 đã nhận 293 ngày trước và không có pull request nào đang mở. Đang mở
-
FormBuilder onChange callback not triggered when options prop is providedCó thể làm lại được @Victoriya25 đã nhận 335 ngày trước và không có pull request nào đang mở. Đang mở
-
FormBuilder with OnChange broke textareaCó thể làm lại được @lane-formio đã nhận 307 ngày trước và không có pull request nào đang mở. Đang mở
Issue tương tự
-
bot:ai-assisted component:platform-js status:untriaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
midnightntwrk/platform-js#38 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ranxianglei/billion-context#7068 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
vendor: bump whisper.cpp past 6a8addd — the current pin aborts the app on a failed Metal initĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mybigday/whisper.rn#348 ·
-
enhancement severity:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Battle-Cattle/BCUK-Bot-4#1075 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
ilan-pinto/roaring-lions#1552 ·
Maintainer thường phản hồi trong vòng 1 ngày