I'm an Angular and React developper.
I'm trying to use Lightning Web Component in Salesforce Community context for the very first time.
I'm building a multiple step form. The data need to be persisted only at the very end of the form funnel.
- How should I handle the form state between steps?
1.1 Is it possible/recommended to use a state management library like redux or mobx?
1.2 Should I store it in a parent component using Pubsub events?
Moreover requiring external libraries seems different from regular NPM project.
- Can you confirm that it's impossible to add dependencies and include then like this in a Community project:
import _ from 'lodash';
Finally, I want an SPA look and feel
- Is it possible to update the url when form steps change?
3.1. Should I create a page per step and use lightning:navigation ?
3.2. Can I have a single page and use the router like I'm used to with react
Thank you for you help 😀