NF-009: Island props are not plain JSON
Props passed to an island cross a network boundary, so values that are not plain JSON do not survive: functions, class instances, Date, Map, undefined in...
Why This Error Occurred
Props passed to an island cross a network boundary, so values that are not plain JSON do not survive: functions, class instances, Date, Map, undefined in arrays and cyclic references. The message names the path of the bad value.
Possible Ways to Fix It
-
Convert props to plain JSON before passing them: ISO strings for dates, arrays for maps.
-
Pass callbacks through events, not props.
<RemoteIsland remote="shop" island="Hello" props={{ when: new Date().toISOString() }} />
Useful Links
NF-008: Island fetch timed out
The remote did not answer within the timeout (3000 ms by default). It is slow or overloaded, or the timeout is lower than the island's real render time.
NF-010: Envelope was rendered by a different build than this bootstrap
The envelope's build id differs from the build id of the client bootstrap that tried to hydrate it. The remote deployed a new build between the server...