I have a global config that just uses one type of block for its data. I'd like these blocks to have incremental IDs set to them (1, 2, 3, etc) when they are created, so I have a beforeValidate field hook to do just that. It correctly sets the new ID but instead of setting it just for the new block instance, it sets this ID to all blocks in the global. I'm not sure if this is a bug or how it works by design...either way, is there some way to just set this ID on the new block rather than all blocks?
#Block hook in global updates all blocks
1 messages · Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
Community-Help:
I solved this by moving the hook from the block's field to the global and simply updating the entire args.data and then returning it with the new ID