nette.ajax.js icon indicating copy to clipboard operation
nette.ajax.js copied to clipboard

Pass state between requests

Open peldax opened this issue 5 years ago • 1 comments

  • Remebers states recieved from nette (merge array instead of replace).
  • Updates URL to add all persistent paramers.
  • Can be disabled using settings noState or data attribute data-no-state.

Some work is still needed to detect when nette drops parameter (-> uses default one).

Its big BC break. I am just leaving it here for anyone interested.

peldax avatar Jan 22 '20 05:01 peldax

Switched back to replace current state (original commit performed merge).

This way we dont need to detect Nette dropping default parameters, because when we pass all peristent parameters in request Nette returns everything back in its up to date state.

peldax avatar Jan 22 '20 06:01 peldax