ProseMirror + Remirror dispatch setNodeAttribute not working as expected

Hey all! I’m new to ProseMirror (via Remirror) and am having an issue with my first use of a dispatch + Transaction.

I know this is a discussion board for ProseMirror not Remirror, but I’m hoping maybe my issue is on the ProseMirror side and/or there may be some folks here familiar with Remirror (their Discord is rather dead and I’ve not had luck getting insights there).

I’ve created a simple custom extension for Remirror that implements a ProseMirror Node (from what I can tell). It’s very simple - it stores an id in the attributes and I want to be able to update that ID based on a user action outside the editor.

As far as I can tell I have followed all the steps for successfully setting up and dispatching a transaction, but the change is never rendered in the editor.

I have a repro repo here: GitHub - brockklein/remirror-test: Repro steps Remirror/Prosemirror questions

Any help/insight would be greatly appreciated!

Change this line to

tr = tr.setNodeAttribute(pos, 'id', 'new-id')

Thank you for taking a look! Sadly no go…I made that change and the dispatch still doesn’t appear to work. You can see even without that change the Transaction appears to have the right steps in it: