aliaspooryorik
aliaspooryorik
flash.persistRC
https://coldbox.ortusbooks.com/digging-deeper/flash-ram/using-flash-ram#persistrcaliaspooryorik
aliaspooryorik
flash.persistRC(include="name,email,address");
relocate('wizard.step2');
aliaspooryorik
aliaspooryorik
relocate(event='wizard.step2', persist="name,email,address")
aliaspooryorik
aliaspooryorik
flash
because:
⢠flash gives a bit more flexibility
⢠flash can inflate to private scope - I often stick validation results in there so nice to separate rc (which can come from the client) vs prc (which is trusted)
⢠relocate is probably doing too much (SRP) - but is convenient!aliaspooryorik
lmajano
06/18/2023, 11:14 AMaliaspooryorik
lmajano
06/18/2023, 11:16 AM