Skip to content

v22.6.0

… export normalizePath helper on Logic/ViewsFlow.js

This is useful to use relative paths within logic files, eg, in a logic file, you could do:

```
// Say this is `/App/Stuff.view.logic.js`

import { normalizePath } from 'Logic/ViewsFlow.js'
import Stuff from './Stuff.view.js'
import React from 'react'

export default function StuffLogic(props) {

  console.log(normalizePath(props.viewPath, 'No'))
  // will output `/App/No`

  return <Stuff />
}
```
Assets 2