Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs React和aws中基于dynamo-id的路由_Reactjs_React Router Dom_Aws Amplify - Fatal编程技术网

Reactjs React和aws中基于dynamo-id的路由

Reactjs React和aws中基于dynamo-id的路由,reactjs,react-router-dom,aws-amplify,Reactjs,React Router Dom,Aws Amplify,我使用react router dom创建到dynamo表中各个记录的路由。为了实现这一点,我创建了一个表,列出了所有的记录,并且能够通过下面的路径过滤这些记录,以获得单个记录 <Route path="/PatientFilter/:patientId" component={({match}) => <Filter patientId={match.params.patientId}/> }/> }/> 现在这很好。我的问题,或者更确切地说,是我是否

我使用react router dom创建到dynamo表中各个记录的路由。为了实现这一点,我创建了一个表,列出了所有的记录,并且能够通过下面的路径过滤这些记录,以获得单个记录


<Route  path="/PatientFilter/:patientId" component={({match}) => <Filter patientId={match.params.patientId}/> }/>


}/>
现在这很好。我的问题,或者更确切地说,是我是否有可能将个人记录返回的patientId保存到其他路由,而不必进行新的appsync查询来处理此新情况。
谢谢

patientId
是您路线的一部分,您的
appsync查询是什么意思?您试图处理的问题是什么?
patientId
是您路线的一部分,您的
appsync查询是什么意思?