-
Notifications
You must be signed in to change notification settings - Fork 20
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
Notify elements of the same type that some data has changed. #9
Comments
+1 |
what??? I have the same need, I don't understand that it is not supported... |
Any plans to actually solve this? (Or should we implement our own meta element?) (And mentioning this restriction in the documentation would have saved me half a day of debugging...) |
@albinrangefelt you can take a look at this one: https://github.com/akc42/akc-meta |
I've been looking into this for myself, and I have some questions.
|
I also need this feature. akc-meta doesn't work for me as it creates cloned copy of value object. I want to share value by reference, which iron-meta already does. Regarding expected/reasonable behavior. I assume, following can work:
There isn't any activity on this since last 3 months. So, I assume no one is working on this. So, Probably I would pick this up as I need this on priority. Is there any one working on it? |
Came up against this one as well, notification of changes would be very useful |
Hi Rob, I have fixed it in my forked branch. See at https://github.com/DreamworldSolutions/iron-meta To use this version, add Due to busy schedule, we weren't able to write test-cases for this feature. So, it's pull request submission is still pending. I will appoint someone to submit pull request by next week and I hope that it will be accepted. |
Thanks for the code @ChiragMoradiya just tried it and it looks great, works as I was expecting |
+1 thanks @ChiragMoradiya, your fork is working for me as well. Hopefully you can find time for that pull request :) |
@ChiragMoradiya @rwestlund @RobMaskell Hey, I cannot understand how to use the new change features of the fork. I have one parent meta in one element: and one children in one other element: when I update with this.isAuthenticated = true. Thank you in advance... |
I use the |
Gosh, yeah, the fork-code wasn't loaded correctly. My deep fault. So glad it's working now. Thank you for the awesome work @ChiragMoradiya and @RobMaskell for the answer! |
I could be totally wrong, but I think
|
You are right. data-binding is more appropriate. But, in some cases it's hard to avail a constant which is configurable to each and every element on the page. In my case, I am storing all the constants as a JS Object. Sometimes, one of the property of that object is changed later on and that change should be notified to all the elements of the app, so they can adjust around it. That use-case wasn't being solved easily without this feature. |
Still no update? |
Hi! I have iron-metas in different elements. One is producing data and another is listening to changes. As I figured out consumer doesn't have any way to listen to changes. Am I right?
The text was updated successfully, but these errors were encountered: