問題タブ [xstate]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1787 参照

reactjs - XState react - 複数のコンポーネント間でマシン インスタンスを共有する

と の 2 台のマシンがAuthenticationMachineありAddressMachineます。AuthenticationMachine は によって使用されLogin component、AddressMachine は によって使用されAddress componentます。しかしtoken、AddressMachine で使用するには、Address コンポーネントの AuthenticationMachine が必要です。ActorAuthenticationMachine で生成しようとしましたが、うまくいきませんでした。

認証機