Skip to content

Commit

Permalink
Responded to CRs
Browse files Browse the repository at this point in the history
  • Loading branch information
OAGr committed Jan 11, 2024
1 parent 0b4d932 commit 29ab0a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const TableRow: React.FC<TableRowProps> = ({ label, number }) => (
</Fragment>
);

let buildurl = (
let buildSquiggleCode = (
model: ModelEvaluator,
numeratorItem: Item,
denominatorItem: Item,
Expand Down Expand Up @@ -113,7 +113,7 @@ export const ItemSideBar: FC<Props> = ({
return <div>Result not found</div>;
} else {
let item = result.value;
const squggleCode = buildurl(
const squggleCode = buildSquiggleCode(
model,
numeratorItem,
denominatorItem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ export const ForcePlot: FC<{
simulation.nodes(nodes);

return simulation;
}, [model, nodes, forceFn]);
//Note: Don't add ``forceFn`` to the dependencies. ``forcefn`` is unstable, so this will cause unnecessary rerenders.
}, [model, nodes]);

useEffect(() => {
return () => {
Expand Down

0 comments on commit 29ab0a5

Please sign in to comment.