Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix kraken page reload. #419

Merged
merged 1 commit into from
Jun 18, 2021
Merged

fix: fix kraken page reload. #419

merged 1 commit into from
Jun 18, 2021

Conversation

andycall
Copy link
Member

@andycall andycall commented Jun 15, 2021

修复页面刷新的过程中,指令执行顺序错误的问题

Fixed #118

@openkraken-bot
Copy link

openkraken-bot bot commented Jun 16, 2021

  • Total time cost(without paint and layout): 666.84ms ↓ (0%)
  • widget_creation_cost: 39.11ms ↓ (10%)
    • controller_properties_init_cost 0.00ms(0%)
    • view_controller_properties_init_cost 0.00ms(0%)
    • element_manager_init_cost 0.00ms(0%)
    • element_manager_property_init 0.00ms(0%)
    • root_element_property_init_cost 0.00ms(0%)
    • root_element_init_cost 0.00ms(0%)
    • create_viewport 0.00ms(0%)
    • bridge_init_cost 0.00ms(0%)
    • bridge_register_dart_method_cost 0.00ms(0%)
    • js_context_init_cost 0.00ms(0%)
    • native_method_init_cost 0.00ms(0%)
    • polyfill_init_cost 0.00ms(0%)
  • First Bundle Load: 626.735ms ↓ (0%)
    • js_bundle_load_cost 0.00ms(0%)
    • js_bundle_eval_cost 0.00ms(0%)
    • js_parse_time_cost 0.00ms(0%)
    • flush_ui_command_cost 20.00ms(0%) avg: 0.76ms↑ (39%)
    • create_element_cost 195.00ms(0%) avg: 0.01ms(0%)
    • js_host_class_get_property_cost 5734.00ms(0%) avg: 0.01ms(0%)
    • js_host_class_set_property_cost 2735.00ms(0%) avg: 0.02ms(0%)
    • js_host_class_init_cost 0.00ms(0%)
    • js_native_function_call_cost 1843.00ms(0%) avg: 0.03ms(0%)
    • create_text_node_cost 47.00ms(0%) avg: 0.01ms(0%)
    • create_comment_cost 116.00ms(0%)
    • dispose_event_target_cost 0.00ms(0%)
    • add_event_cost 341.00ms(0%) avg: 0.04ms↑ (100%)
    • insert_adjacent_node_cost 356.00ms(0%) avg: 0.08ms(0%)
    • remove_node_cost 5.00ms(0%)
    • set_style_cost 2054.00ms(0%) avg: 0.01ms(0%)
    • dom_force_layout_cost 5.00ms(0%) avg: 13.50ms↓ (0%)
    • dom_flush_ui_command_cost 143.00ms(0%) avg: 0.54ms↑ (0%)
    • set_properties_cost 860.00ms(0%) avg: 0.01ms↓ (49%)
    • remove_properties_cost 0.00ms(0%)
  • Rendering: 66.62ms ↑ (4%)
    • flex_layout_cost 253.50ms↑ (1%) avg: 0.11ms(0%)
    • flow_layout_cost 93.00ms↓ (2%) avg: 0.07ms↓ (14%)
    • intrinsic_layout_cost 124.00ms(0%) avg: 0.01ms(0%)
    • silver_layout_cost 0.00ms(0%)
    • paint_cost 1579.00ms↓ (3%) avg: 0.02ms(0%)

std::to_string(targetContextId) + std::string(": bridge have already exist."))
.c_str());
auto context = new kraken::JSBridge(targetContextId, printError);
contextPool[targetContextId] = context;
return poolIndex;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

返回值有问题。
应该返回targetContextId。
现在只有首次加载能成功,后续加载都会失败

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

的确是个bug,欢迎提个 PR 来修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flutter example 第二次再次输入地址会不能刷新页面
4 participants