Skip to content

non JSX function watch not building #4

@msimonc

Description

@msimonc

Thanks for this repo!

If I add a js method to the lib folder, either as part of the button file or in a separate folder, I have to restart (lerner run dev) for the changes to be built.

import axios from 'axios';

export default function fetchStockPrice(payload, BE_API) {
  return axios
  .get(`${BE_API}/stock-price`, payload)
  .then(response => response.data)
  .catch(err => {
    console.log(err);
  });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions