All notable changes to this project will be documented in this file.
- swap order when merging user provided fork state with the internal one. This allows the
:valuesand:touchedkeys to remain unchanged when the code hot reloads
- store initial-values and initial-touched in state so they can be modified after first mount
- set-handle-change takes a vector of maps vs one map
- Add support for fieldarray drag and drop (only top level fieldarrays)
- Add support for nested field arrays
- Add :fieldarray/touched handler
- Fixed a bug involving touched fn introduced in 2.2.7
- Remove keywordization logic on init values
stateto main props to allow users to pass their own ratoms
dirtyto main props
fork/field-array,set-handle-change,set-handle-blur
pathoption takes a vector of keys or a single key identifier for backward compatibility
pathoption now takes a vector of keys
normalize-nameprop to support namespaced keywords
successful-submissionsvalue to props.
submit-countintoattempted-submissions.
keywordize-keysconfig param. It casts all strings to keywords, allowing the developer to only deal with keywords across the form components and handlers.
send-server-requestonly takes two params. The first one is a map that must contain a:namekey along with optional:value,:evt,:debounce,:throttlekeys. The the second one is the user provided fn for the server http request.
errors,dirty, andtouchedarguments to thesend-server-requestuser provided function.
- to use Fork now you need to require either
fork.re-frameorfork.reagent. For the bulma UI kit requirefork.bulma :on-submit-responsemap has been removed. It's better to delegate the server for the error messages:on-submit-response-messagehas changed into:on-submit-server-message:set-status-codehas changed into:set-server-message:set-waiting,:set-submitting, and:set-server-messageare now globally accessible from yourfork.re-frameorfork.reagentnamespaces.- the re-frame interceptors
:on-submitand:cleanhave been removed. Therefore, now you need to set submitting? to true yourself (through the global helper).
dirty?submit handler intodirty. Now, the variable returns eithernilor a map of changed values.
resethandler to props
:throttleoption toon-submit-response
on-submit-responsehandlerset-status-codere-frame handler
- set-external-errors
component-did-mounthandlerinitial-touchedhandler
set-touchedargs should not be wrapped in a sequence.
- enable disable re-frame handlers
send-server-requesthandler
- Support for any side effect free validation
:external-errorskey to differenciate from input:errors:form-idto let fork know about the inputs
:initial-valuesnot required- Safe calls to
(values "input")or(touched "input")when no value is set
- Built-in validation
- Array input support
- Dynamic array input and more built-in inputs