File tree Expand file tree Collapse file tree
packages/explorer/src/app/(explorer)/[chainName]/worlds/[worldAddress]/explore Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " @latticexyz/explorer " : patch
3+ ---
4+
5+ The SQL editor now shows an indicator if the query has changed since it was last run.
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export function SQLEditor({ table }: Props) {
3131 query,
3232 } ,
3333 } ) ;
34+ const currentQuery = form . watch ( "query" ) ;
3435
3536 const handleSubmit = form . handleSubmit ( ( data ) => {
3637 if ( validateQuery ( data . query ) ) {
@@ -96,6 +97,12 @@ export function SQLEditor({ table }: Props) {
9697 </ div >
9798 ) }
9899 />
100+
101+ { currentQuery !== query ? (
102+ < span className = "absolute right-1 top-[-6px] text-5xl text-primary" >
103+ < span className = "text-5xl text-primary" > ·</ span >
104+ </ span >
105+ ) : null }
99106 </ div >
100107
101108 < div className = "flex justify-end" >
You can’t perform that action at this time.
0 commit comments