You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Followed by the latest ObjectRenderer implementation, we will refactor the NavigatorLayout to expect JsonFormDispatch from its children and append into NavigatorScreen
Some advice about passing data from child to parent SF, advance tip SF
Some scenarios to address
Create a Context in NavigatorLayout to pass down method to update the screen data
Screen data should be an object (?) with property to the path name, eg: /address/country
Progress update: the new context help display the nested props UI into different views successfully, let's see what left here
✅ Nested element now is display on different views and can be navigated back and forth using the buttons
✅ The form is functioning as the disclousure view can update the whole data as expected ( notice the right panel with serialized JSON data )
❌ The home page should display the primitive fields and nested field as NavigatorButton only, so far it display the whole form #28
❌ /address screen is missing, somehow the setScreenContent did not update the screen array, this is strange because when debugging I can see the ObjectRenderer trigger the update for /address screen. 3de3c80#diff-970794900c344ca0cf5cb24ba03c6d1ffe72486f0c6acf848712d8116a327c23R62
This explain the situation understand that you are trying to set your local state and right away use this new value to set your value in your contextSF
In short: Since the screenContent value is depending on the last value, we need to use it in a callback, more on the discussion https://stackoverflow.com/a/54069332
Example ![Image](https://github.com/bangank36/WP-Builder/assets/10071857/f22a2880-3bb1-4fd3-b537-8317f5961cc1)
Summary
JsonFormDispatch
from its children and append intoNavigatorScreen
/address/country
Reference
#22
#19
The text was updated successfully, but these errors were encountered: