Releases: Shopify/turbograft
Releases · Shopify/turbograft
v0.1.12
v0.1.11
v0.1.10
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
Changes
- #53: With the
tg-static
attribute decorating a node, we can make sure that this node is not replaced during a fullpage refresh. Though, if you were to refresh the page at a higher level -- e.g., refreshing an ancestor of thetg-static
, the static aspect is no longer obeyed and it is replaced. - #53: Fixed up
refresh-always
key to literally always refresh the node annotated. Previously, it was refreshing only if you did aPage.refresh(onlyKeys: [...])
with some keys, which was a very misleading name for something calledrefresh-always
v0.1.4
Changes
- Now we properly submit the right HTTP request type when using
tg-remote
. E.g., when usingPATCH
, we add_method=PATCH
to the payload of the form if not already present. Rails interprets these and considers them to be the true HTTP method type, even if the actual HTTP method submitted by the browser is aPOST
. Prior releases would have seen incorrect behaviour when trying to usetg-remote
with methods other thanPOST
tg-remote-norefresh
attribute (no value required) on a node withtg-remote
will now preventPage.refresh
from firing entirely. This is useful for situations where you are handling state entirely in the client and want to perform a method and have 0 side effects.
from #51