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

Pass value in on-iron-localstorage-load callback #49

Open
alexclarkofficial opened this issue Feb 7, 2017 · 0 comments
Open

Pass value in on-iron-localstorage-load callback #49

alexclarkofficial opened this issue Feb 7, 2017 · 0 comments

Comments

@alexclarkofficial
Copy link

It would be nice if the on-iron-localstorage-load callback had the value passed in to more easily do a data-down/actions-up flow.

You could set the value of your prop in the on-iron-localstorage-load callback when the local storage is first read (without querying the DOM, like you would have to do now), and then use a one-way data-binding to write to local storage any changes that happen in your component.

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

No branches or pull requests

1 participant