Closed ghost closed 2 years ago
我试了下 用 Obx 不会自动销毁控制器 GetBuilder 参数 assignId为true时才会自动销毁 Obx 必须勾选 autoDispose 用 StatefulWidget 才能自动销毁吗?
Obx
GetBuilder
assignId
true
autoDispose
StatefulWidget
这一块,文档里面也详细写了:https://juejin.cn/post/7005003323753365517#heading-10
好的
我试了下 用
Obx
不会自动销毁控制器GetBuilder
参数assignId
为true
时才会自动销毁Obx
必须勾选autoDispose
用StatefulWidget
才能自动销毁吗?