mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
[GH-ISSUE #152] Set state causing segmentation fault 11 #94
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @n8jadams on GitHub (Jun 1, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/152
This is such an intriguing library with a ton of potential! I must be doing something wrong, because I cannot accomplish a very simple task. (I am running on MacOS)
Using the following code:
It renders the app, but then when I click the button I get
Segmentation fault: 11.Why is this? I can run the
charts.jsexample code just fine...@mischnic commented on GitHub (Jun 1, 2018):
Can reproduce on macOS.
It seems like rendering with
this.state.showMessage = truedoesn't actually render the Text if it isn't the initial render. Then withfalse, there is no text to delete and it crashes (stack trace containsuiBoxDelete).@n8jadams commented on GitHub (Jun 1, 2018):
If I wrap the "if and” check in a
<Box>component, it works as expected. (Same thing works with a ternary.)or
This is resolved enough for me.
@mischnic commented on GitHub (Jun 1, 2018):
You aren't. This should work.
Could you please reopen the issue?
It also works correctly if the button is placed above the conditional text.