Table data not getting updated until i refresh the page
The issue I’m encountering is that when I add data to the database through a modal component, the new data doesn’t immediately appear in the table. It only shows up after I refresh the page. I attempted to implement a refresh key logic to refetch the component, but it isn’t working. I want the new data to be reflected in the table as soon as it’s added through the modal, without requiring a manual refresh. The datatable component is where I’m calling both the modal and the table.