miolo-react 3.0.0-beta.164 → 3.0.0-beta.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miolo-react",
3
- "version": "3.0.0-beta.164",
3
+ "version": "3.0.0-beta.166",
4
4
  "description": "React utils for miolo",
5
5
  "author": "Donato Lorenzo <donato@afialapis.com>",
6
6
  "contributors": [
@@ -16,12 +16,12 @@ const useSsrDataOrReload = (context, miolo, name, options) => {
16
16
  const _parseData = useCallback(
17
17
  (value) => {
18
18
  let parsed = value
19
- if (modifier !== undefined) {
20
- parsed = modifier(parsed)
21
- }
22
19
  if (model !== undefined) {
23
20
  parsed = new model(parsed)
24
21
  }
22
+ if (modifier !== undefined) {
23
+ parsed = modifier(parsed)
24
+ }
25
25
  return parsed
26
26
  },
27
27
  [modifier, model]