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

seed::update deprecated #242

Merged
merged 3 commits into from
Oct 12, 2019

Conversation

MartinKavik
Copy link
Member

Changes

  • Deprecated seed::update and related entities.
  • Rewritten examples update_from_js and websockets.

Why

  • It seems that people have tendency to use seed::update + global state instead of Model. (See e.g. MVP closures kartevonmorgen/seed-quickstart#1.)
  • Implementation is a little bit ugly.
  • It requires (de)serializable Msg - it's painful in many cases.
  • It's confusing - should we use App::update or seed::update?
  • If you want to use it from JS, you have to write error-prone boilerplate.
  • It would make writing /scripts/pupulate_events more difficult.

@David-OConnor
Copy link
Member

Agree.

@David-OConnor David-OConnor merged commit a084193 into seed-rs:master Oct 12, 2019
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.

2 participants