Warning: This synthetic event is reused for performance reasons happening with <input type=“checkbox” />

后端 未结 5 756
故里飘歌
故里飘歌 2021-01-31 07:25

I\'ve been working on a simple react-redux todo example for a class and I came across several warning messages that show in the console everytime I check and uncheck a checkbox

5条回答
  •  醉梦人生
    2021-01-31 08:13

    for the ones that came to this problem with react native.

    i face this problem on a navigation

    PersonalProductsScreen.navigationOptions=({navigation})=>{
    const handleEditButton=navigation.navigate.bind(this,"EditProduct")
    return {
        headerTitle:"My Products",
        headerRight:
    }
    

    }

    pay attention to the method i used . I was trying to bind the navigate method.

    This is the refactor:

    const handleAddButton=()=>navigation.navigate("EditProduct")
    

提交回复
热议问题