sittercity/sprig

Lazy-loading causes unwanted SQL query

Closed this issue · 4 comments

leth commented

When retrieving unchanged fields on a partially changed object sprig will try to load the object from the database,

This is a real problem when validating a partially filled in form.

It should probably just return the default value instead.

leth commented

I've added test cases in 712b576cd75f7fd28fba0fa92183aad81cac1b42

Related to #51

leth commented

Fixed since the change in lazy loading policy.

Closing