Sender | Message | Time |
---|---|---|
29 Jan 2023 | ||
Redacted or Malformed Event | 16:45:25 | |
Redacted or Malformed Event | 16:45:50 | |
Oh, that one | 16:45:50 | |
most | 16:45:56 | |
I don't use that tutorial since it uses a lot of stuff that doesn't apply to my current project. | 16:46:42 | |
the one in the playlist is better since it goes in about how it works. | 16:47:04 | |
Redacted or Malformed Event | 16:47:17 | |
Redacted or Malformed Event | 16:49:06 | |
I kinda was until I started looking into JS, web-sys, and bit more into Rust itself. | 16:51:42 | |
Redacted or Malformed Event | 17:33:59 | |
Honestly, I'm pretty new to the whole thing the person who uploaded those videos is in this server so you can ask him. | 17:34:48 | |
Redacted or Malformed Event | 17:36:24 | |
That should be him. | 17:37:29 | |
Redacted or Malformed Event | 17:42:09 | |
17:50:39 | ||
21:52:33 | ||
Hi, I'm trying to make a component with dynamically created input fields (based on an API call). I have a struct component:
and my Component implementation looks like this: | 21:52:34 | |
| 21:52:38 | |
My problem is that in the update function no matter what index is used it will always print I: <index>, Id: 0 but Id should correspond to the index of the NodeRef | 21:53:49 | |
* My problem is that in the update function no matter what index is used it will always print I: <index>, Id: 0 but Id should correspond to the index of the NodeRef.Do you guys have any ideas what could be the culprit? | 21:54:51 | |
30 Jan 2023 | ||
Is there an example somewhere of a parent component sending a message to a child? | 03:07:01 | |
Or vice-versa? | 03:07:58 | |
Handling recieving a message through the update function seems simple enough, but I'm not sure how to set them up for the sending side to have a reference to the receiver | 03:09:00 | |
You should be easily able to send something from child to parent with either callbacks or states and from parent to child I guess with callbacks or a mspc where the receiver has set p a timer to periodically check for new messages? | 10:43:24 | |
outside of props? | 11:43:18 | |
but check the examples in the repo: - https://github.com/yewstack/yew/tree/master/examples/communication_child_to_parent - https://github.com/yewstack/yew/tree/master/examples/communication_parent_to_child | 11:43:50 | |
12:35:40 | ||
Hi Im trying to find an example of a working hash router example. Haven’t managed to find one in this server or on the docs. Could anyone supply one? | 12:35:42 | |
nvm i figured it out | 13:27:55 | |
Yeah, those just have a component's html send a message back to the same component that defined it. I thought the point of messages would be communication between components, but I guess for that you're supposed to use callbacks? | 13:36:31 |