Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
c1448308
Commit
c1448308
authored
Aug 17, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix listening on edirot event
parent
971f780d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
compiler.ts
libs/remix-ui/solidity-compiler/src/lib/actions/compiler.ts
+3
-3
compiler-container.tsx
...remix-ui/solidity-compiler/src/lib/compiler-container.tsx
+1
-1
No files found.
libs/remix-ui/solidity-compiler/src/lib/actions/compiler.ts
View file @
c1448308
...
...
@@ -26,8 +26,8 @@ export const resetCompilerMode = () => (dispatch: React.Dispatch<any>) => {
})
}
export
const
listenToEvents
=
(
compileTabLogic
)
=>
(
dispatch
:
React
.
Dispatch
<
any
>
)
=>
{
compileTabLogic
.
on
(
'editor'
,
'sessionSwitched'
,
()
=>
{
export
const
listenToEvents
=
(
compileTabLogic
,
api
)
=>
(
dispatch
:
React
.
Dispatch
<
any
>
)
=>
{
api
.
on
(
'editor'
,
'sessionSwitched'
,
()
=>
{
dispatch
(
setEditorMode
(
'sessionSwitched'
))
})
...
...
@@ -39,7 +39,7 @@ export const listenToEvents = (compileTabLogic) => (dispatch: React.Dispatch<any
dispatch
(
setCompilerMode
(
'compilationDuration'
,
speed
))
})
compileTabLogic
.
on
(
'editor'
,
'contentChanged'
,
()
=>
{
api
.
on
(
'editor'
,
'contentChanged'
,
()
=>
{
dispatch
(
setEditorMode
(
'contentChanged'
))
})
...
...
libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx
View file @
c1448308
...
...
@@ -59,7 +59,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
const
currentFileName
=
api
.
getConfiguration
(
'currentFile'
)
currentFile
(
currentFileName
)
listenToEvents
(
compileTabLogic
)(
dispatch
)
listenToEvents
(
compileTabLogic
,
api
)(
dispatch
)
},
[])
useEffect
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment