airbnb / goji-js

React ❤️ Mini Program
https://goji.js.org
MIT License
224 stars 27 forks source link

Refactor template reuse & fix `getSubtreeId` #186

Closed malash closed 2 years ago

malash commented 2 years ago
  1. Refactored item.wxml to reuse existing children0.wxml.
image
  1. Fixed an bug in getSubtreeId that cause this function always return undefined. The root cause is https://github.com/airbnb/goji-js/pull/77 replace root container with new GOJI_VIRTUAL_ROOT element but I forgot to update the getSubtreeId logics.