You can add props.id to dependency array so it would rerun on id change. Having an empty dependency array makes it run only once.
確定! 回上一頁