#10454·nocobase

New records added via the Kanban plugin don't appear unless the page is manually refreshed

Author: a-claytonCreated Sep 4, 2026Updated Sep 17, 2026

Describe the bug

New records added via the Kanban plugin don't appear unless the page is manually refreshed.

Environment

  • NocoBase version: v2.2.5
  • Database type and version: PostgreSQL 16
  • OS: Docker, via OrbStack on macOS Tahoe 26.5
  • Deployment Methods: Docker
  • Docker image version: latest

How To Reproduce

  1. Create a Kanban view using the plugin
  2. Add an Action button for 'Add new'
  3. Populate the button dialog box with fields
  4. Use the button to add a new record

Expected behavior

The new record should appear immediately, without requiring the user to click the refresh button or refresh the browser page.

My diagnosis is once the useCreateActionProps button within Kanban.tsx is used to create a record, it doesn't update the array of objects with this new record:

const useCreateActionProps = () => {
  const form = useForm();
  const { column, groupField } = useContext(KanbanColumnContext);
  const { onClick } = useCAP();
  return {
    async onClick() {
      form.setValuesIn(groupField.name, column.id);
      await onClick(); // this line waits for the action, but doesn't update anything
    },
  };
};

This is different to handleCardRemove, which does update the array:

      const handleCardRemove = useCallback(
        (card, column) => {
          const updatedBoard = Board.removeCard({ columns: field.value }, column, card);
          field.value = updatedBoard.columns;
          setDataSource(updatedBoard.columns); // the object is updated
        },
        [field],
      );

Screenshots

https://github.com/user-attachments/assets/251bee25-f20e-426e-b764-490b27136aba