MCPcopy Index your code
hub / github.com/bugy/script-server / reloadScript

Function reloadScript

web-src/src/main-app/store/scriptConfig.js:69–77  ·  view source on GitHub ↗
({state, commit, dispatch}, {selectedScript})

Source from the content-addressed store, hash-verified

67 namespaced: true,
68 actions: {
69 reloadScript({state, commit, dispatch}, {selectedScript}) {
70 dispatch('setConnection', null);
71 commit('RESET_CONFIG');
72
73 if (!isEmptyString(selectedScript)) {
74 commit('SET_LOADING', true);
75 reconnect(state, internalState, commit, dispatch, selectedScript);
76 }
77 },
78
79 reloadModel({state, commit, rootState}, {scriptName, parameterValues, clientModelId}) {
80 if (rootState.scripts.selectedScript === scriptName) {

Callers

nothing calls this directly

Calls 2

isEmptyStringFunction · 0.90
reconnectFunction · 0.70

Tested by

no test coverage detected