UNPKG

770 BSource Map (JSON)View Raw
1{"version":3,"sources":["Stop.tsx"],"names":["Component","Stop","setNativeProps","parent","props","forceUpdate","displayName"],"mappings":"mVAAA,OAASA,SAAT,KAA0B,OAA1B,C,GAMqBC,CAAAA,I,0WAInBC,c,CAAiB,UAAM,IACbC,CAAAA,MADa,CACF,MAAKC,KADH,CACbD,MADa,CAErB,GAAIA,MAAJ,CAAY,CACVA,MAAM,CAACE,WAAP,GACD,CACF,C,uEAEQ,CACP,MAAO,KAAP,CACD,C,kBAb+BL,S,EAAbC,I,CAEZK,W,CAAc,M,QAFFL,I","sourcesContent":["import { Component } from 'react';\n\ntype StopProps = {\n parent?: Component;\n};\n\nexport default class Stop extends Component<StopProps, {}> {\n props!: StopProps;\n static displayName = 'Stop';\n\n setNativeProps = () => {\n const { parent } = this.props;\n if (parent) {\n parent.forceUpdate();\n }\n };\n\n render() {\n return null;\n }\n}\n"]}
\No newline at end of file