Allow calling Context.get(socket, :field) and Context.put(socket, field: "value") in update/2
Calling it giving assigns will not work because there's no context information there. It's different from a render/1 assigns.
If the user is defining props or datas with from_context they will have to call assign(socket, assigns) for them to be updated (as with any other assigns).
Allow calling
Context.get(socket, :field)
andContext.put(socket, field: "value")
inupdate/2
Calling it giving
assigns
will not work because there's no context information there. It's different from arender/1
assigns.If the user is defining
prop
s ordata
s withfrom_context
they will have to callassign(socket, assigns)
for them to be updated (as with any other assigns).