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

Refactor Page.refresh #73

Open
qq99 opened this issue Feb 12, 2015 · 4 comments
Open

Refactor Page.refresh #73

qq99 opened this issue Feb 12, 2015 · 4 comments

Comments

@qq99
Copy link
Contributor

qq99 commented Feb 12, 2015

Page.refresh
  response: xhr
  onlyKeys: [...]

vs

Page.refresh
  onlyKeys: [...]

Latter does an extra GET, the former uses the response of an XHR, but they're both named refresh. The former should be named replace or something

@qq99
Copy link
Contributor Author

qq99 commented Apr 1, 2015

@maartenvg I think your PR addressed this issue?

@maartenvg
Copy link
Contributor

Not really? It is still called refresh, despite taking different inputs.

@qq99
Copy link
Contributor Author

qq99 commented Apr 1, 2015

Gotcha 👍 thanks

@marutypes
Copy link
Contributor

This makes a lot of sense, I'm a little worried that our existing uses in the admin might call Page.refresh with an xhr directly though. I'll take a look. I'd be worried about breaking the api though (especially as long as we have the weird doppelganger version of Remote in our core codebase).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants