Skip to content

Commit 5e36e1b

Browse files
doumafangYorkShen
authored andcommitted
* [iOS] fix _virtualComponentId miss "@" bug
1 parent 70da769 commit 5e36e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/sdk/WeexSDK/Sources/Component/RecycleList/WXComponent+DataBinding.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ - (void)updateBindingData:(NSDictionary *)data
101101
if (self.attributes[@"@isComponentRoot"]) {
102102
if (![recycleListComponent.dataManager virtualComponentDataWithIndexPath:indexPath]) {
103103
static NSUInteger __componentId = 0;
104-
self->_virtualComponentId = [NSString stringWithFormat:@"%@%lu", listRef, (unsigned long)__componentId % (2048*1024)];
104+
self->_virtualComponentId = [NSString stringWithFormat:@"%@@%lu", listRef, (unsigned long)__componentId % (2048*1024)];
105105
__componentId++;
106106
dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
107107
[[WXSDKManager bridgeMgr] callComponentHook:self.weexInstance.instanceId componentId:self.attributes[@"@templateId"] type:@"lifecycle" hook:@"create" args:@[self->_virtualComponentId, newData] competion:^(JSValue *value) {

0 commit comments

Comments
 (0)