brisa-build / brisa

The Web Platform Framework.
https://brisa.build
MIT License
452 stars 12 forks source link

fix: add different keys on actions #564

Closed aralroca closed 1 month ago

aralroca commented 1 month ago

Fixes https://github.com/brisa-build/brisa/issues/558

With the previous fix there were 2 problems:

To solve this, the best is to generate a key during the render (only if it is not already defined), and that this one is unique. This way I have been able to revert the change in the diffing library without this case of data-cid and at the same time it solves the problem.